APOPSA SA DE CV
Col. San Benito Edificio Gran Plaza Nivel 2 Oficina 204

ANALISIS DE SALDO POR PROVEEDOR
AL: {{$dateFormater($al)}}

PROVEEDORES LOCALES


@php $totalFinal_01_30=0; $totalFinal_31_60=0; $totalFinal_61_90=0; $totalFinal_91_120=0; $totalFinal_121_plus=0; $totalFinal_Final=0; @endphp @foreach ($proveedores_locales as $proveedor) @php $total_01_30=0; $total_31_60=0; $total_61_90=0; $total_91_120=0; $total_121_plus=0; $Totalfinal=0; @endphp @php $doc_id = 0; $first = true; $monto = 0; $total = 0; /* $total_01_30+=$documento->timeline_abonos->abonos_01_30; $total_31_60+=$documento->timeline_abonos->abonos_31_60; $total_61_90+=$documento->timeline_abonos->abonos_61_90; $total_91_120+=$documento->timeline_abonos->abonos_91_120; $total_121_plus+=$documento->timeline_abonos->abonos_121_plus;*/ @endphp @foreach ($proveedor as $key=> $documento) @if ($key>0) @php $doc_id = $documento->doc_id @endphp @endif @if ($doc_id != $documento->doc_id ) @if ($first) @php $monto= $documento->total_cancelar; $total= $monto+$total; $first = false; @endphp @include('cuentasPorPagar.reportes.table') @endif @else @if (isset($proveedor[$key+1]->doc_id)) @if ($proveedor[$key+1]->doc_id != $doc_id ) @php $first = true; @endphp @include('cuentasPorPagar.reportes.table') @else @php $first = true; $monto= $documento->total_cancelar; $total= $monto+$total; @endphp @include('cuentasPorPagar.reportes.table') @endif @else @endif @endif @endforeach
PROVEEDOR: {{$proveedor[0]->nombreProveedor}}
 
TIPO
FACTURA
N° DE DOCUMENTO CONDICIÓN MONTO EMITIDO VENCIMIENTO DIAS DE 1-30 DIAS DE 31-60 DIAS DE 61-90 DIAS DE 91-120 DIAS MAS DE 121 DIAS Total pagado
Total $ {{number_format($total_01_30,2)}} $ {{number_format($total_31_60,2)}} $ {{number_format($total_61_90,2)}} $ {{number_format($total_91_120,2)}} $ {{number_format($total_121_plus,2)}} $ {{number_format($total,2)}}
@php $totalFinal_01_30+=$total_01_30; $totalFinal_31_60+=$total_31_60; $totalFinal_61_90+=$total_61_90; $totalFinal_91_120+=$total_91_120; $totalFinal_121_plus+=$total_121_plus; $totalFinal_Final+=$Totalfinal; @endphp @endforeach
DE 1-30 DIAS DE 31-60 DIAS DE 61-90 DIAS DE 91-120 DIAS MAS DE 121 DIAS Total
TOTAL CUENTAS POR COBRAR GENERAL $ {{number_format($totalFinal_01_30, 2)}} $ {{number_format($totalFinal_31_60, 2)}} $ {{number_format($totalFinal_61_90, 2)}} $ {{number_format($totalFinal_91_120 ,2)}} $ {{number_format($totalFinal_121_plus ,2)}} $ {{number_format($totalFinal_Final ,2)}}
{{-- --}}