@php $enabled_sales_agents = App\Models\Tenant\Configuration::getRecordIndividualColumn('enabled_sales_agents'); @endphp
REPORTE DE VENTA RESUMIDA
DE {{ \Carbon\Carbon::parse($d_start)->format('d-m-Y') }} AL {{ \Carbon\Carbon::parse($d_end)->format('d-m-Y') }} |
||||||||
EMPRESA: |
{{ $company->name }} |
|||||||
RUC: | {{ $company->number }} |
# | DOC | FECHA EMISIÓN | FECHA VENCIMIENTO | IMPORTE | DEBE | ABONOS |
---|---|---|---|---|---|---|
ZONA: {{ $key }} |
|
@endif
@php
$total_customer = 0;
$pending_customer = 0;
@endphp
@php
$explode_customer = explode('|', $customer);
$name = $explode_customer[0];
$address = $explode_customer[1];
@endphp
|||||
{{ $name }} | ||||||
{{ $address }} | ||||||
|
||||||
VENDEDOR: {{ $seller }} | ||||||
{{ $loop->iteration }} | {{ $document->document_number }} | {{ \Carbon\Carbon::parse($document->date_of_issue)->format('d-m-Y') }} | {{ \Carbon\Carbon::parse($document->date_of_due)->format('d-m-Y') }} | {{-- total original --}}{{ number_format($document->total, 2) }} | {{-- el total menos lo que pagó --}}{{ number_format($document->total - $document->pending, 2) }} | {{-- lo que pagó --}}{{ number_format($document->pending, 2) }} |
TOTAL VENDEDOR | {{ number_format($total_seller, 2) }} | {{ number_format($total_seller - $pending_seller, 2) }} | {{ number_format($pending_seller, 2) }} | |||
TOTAL CLIENTE | {{ number_format($total_customer, 2) }} | {{ number_format($total_customer - $pending_customer, 2) }} | {{ number_format($pending_customer, 2) }} | |||
TOTAL ZONA | {{ number_format($total_zone, 2) }} | {{ number_format($total_zone - $pending_zone, 2) }} | {{ number_format($pending_zone, 2) }} | |||
|
||||||
TOTAL GENERAL | {{ number_format($total_general, 2) }} | {{ number_format($total_general - $pending_general, 2) }} | {{ number_format($pending_general, 2) }} |
No se encontraron registros.