@php $final_balance = 0; $cash_income = 0; $cash_egress = 0; $cash_final_balance = 0; @endphp Reporte POS

Reporte general de ventas POS

Empresa: {{$company->name}}

Fecha reporte: {{date('Y-m-d')}}

N° Documento: {{$company->number}}

@if($cash_documents->count())
@foreach($cash_documents as $item) @php $type_transaction = null; $document_type_description = null; $number = null; $date_of_issue = null; $customer_name = null; $customer_number = null; $currency_type_id = null; $total = null; $type_transaction = 'Venta'; $document_type_description = 'FACT POS'; $number = $item->document_pos->number; $date_of_issue = $item->document_pos->date_of_issue->format('Y-m-d'); $customer_name = $item->document_pos->customer->name; $customer_number = $item->document_pos->customer->number; $total = $item->document_pos->total; $currency_type_id = $item->document_pos->currency_type_id; @endphp @endforeach
# Tipo transacción Tipo documento Documento Fecha emisión Cliente/Proveedor N° Documento Moneda Total
{{ $loop->iteration }} {{ $type_transaction }} {{ $document_type_description }} {{ $number }} {{ $date_of_issue}} {{ $customer_name }} {{$customer_number }} {{ $currency_type_id }} {{ number_format($total,2, ".", "") }}
@else

No se encontraron registros.

@endif