@php use Modules\Factcolombia1\Helpers\DocumentHelper; @endphp
@foreach($taxes as $tax) |
IMPUESTO #{{ $loop->iteration }}
{{ $tax->name }} - ({{ $tax->rate }}%) |
@endforeach
|||||
---|---|---|---|---|---|---|
Fact. Inicial | Fact. Final | Total/Neto | Total + Impuesto |
Total/Excento | @foreach($taxes as $tax)Base | Impuesto | @endforeach
{{$row_first_document['type_document_name']}} {{ $record['prefix'] }}-{{$record['first_document']->number}} |
{{$row_first_document['type_document_name']}} {{ $record['prefix'] }}-{{$record['last_document']->number}} |
{{-- TOTALES --}}
{{ $first_document->generalApplyNumberFormat($net_total) }} | {{ $first_document->generalApplyNumberFormat($total) }} | {{ $first_document->generalApplyNumberFormat($total_exempt) }} | {{-- TOTALES --}} {{-- IMPUESTOS --}} @foreach($taxes as &$tax) @php $sum_taxable_amount = 0; $sum_tax_amount = 0; foreach ($ordered_documents as $document) { $item_values = $document->getItemValuesByTax($tax->id); $sum_taxable_amount += $item_values['taxable_amount']; $sum_tax_amount += $item_values['tax_amount']; } $tax->global_taxable_amount += $sum_taxable_amount; $tax->global_tax_amount += $sum_tax_amount; @endphp{{ $first_document->generalApplyNumberFormat($sum_taxable_amount) }} | {{ $first_document->generalApplyNumberFormat($sum_tax_amount) }} | @endforeach {{-- IMPUESTOS --}}
BASE | IMPUESTO | |
---|---|---|
TOTAL VENTAS EXENTAS | {{ DocumentHelper::applyNumberFormat($global_total_exempt) }} | 0.00 |
TOTAL VENTAS IMPUESTO #{{ $loop->iteration }}
{{-- --}} - {{ $tax->name }} ({{ $tax->rate }}%) |
{{ DocumentHelper::applyNumberFormat($tax->global_taxable_amount) }} | {{ DocumentHelper::applyNumberFormat($tax->global_tax_amount) }} |