Reporte Documentos
Empresa: {{$company->name}} |
Fecha: {{date('Y-m-d')}} |
N° Documento: {{$company->number}} |
Establecimiento: {{$establishment->address}} - {{$establishment->country->name}} - {{$establishment->department->name}} - {{$establishment->city->name}} |
# | Tipo Doc | Número | Fecha emisión | Doc. Afectado | Cliente | N° Documento | Estado | Moneda | Total |
---|---|---|---|---|---|---|---|---|---|
{{$loop->iteration}} | {{$value->type_document->name}} | {{$value->series}}-{{$value->number}} | {{$value->date_of_issue->format('Y-m-d')}} | @php if(in_array($value->type_document_id,[2,3]) && $value->reference){ $series = $value->reference->series; $number = $value->reference->number; $serie_affec = $series.' - '.$number; } $total = in_array($value->document_type_id,[3]) ? -abs($value->total) : $value->total; $sum_total += $total; @endphp{{ $serie_affec }} | {{$value->customer->name}} | {{$value->customer->number}} | {{$value->state_document->name}} | {{$value->currency_type_id}} | {{$total}} |
Total: | {{ number_format($sum_total, 2, ".", "") }} |
No se encontraron registros.