@if($document->total_exportation > 0)
OP.
EXPORTACIÓN: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_exportation, 2) }} |
@endif
@if($document->total_free > 0)
OP.
GRATUITAS: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_free, 2) }} |
@endif
@if($document->total_unaffected > 0)
OP.
INAFECTAS: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_unaffected, 2) }} |
@endif
@if($document->total_exonerated > 0)
OP.
EXONERADAS: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_exonerated, 2) }} |
@endif
@if($document->total_taxed > 0)
OP.
GRAVADAS: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_taxed, 2) }} |
@endif
@if($document->total_discount > 0)
{{(($document->total_prepayment > 0) ? 'ANTICIPO':'DESCUENTO TOTAL')}}
: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_discount, 2) }} |
@endif
@if($document->total_plastic_bag_taxes > 0)
ICBPER: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_plastic_bag_taxes, 2) }} |
@endif
IGV: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_igv, 2) }} |
@if($document->total_charge > 0)
@php
$total_factor = 0;
foreach($document->charges as $charge) {
$total_factor = ($total_factor + $charge->factor) * 100;
}
@endphp
CARGOS ({{$total_factor}}
%): {{ $document->currency_type->symbol }} |
{{ number_format($document->total_charge, 2) }} |
@endif
@if($document->perception)
IMPORTE
TOTAL: {{ $document->currency_type->symbol }} |
{{ number_format($document->total, 2) }} |
PERCEPCIÓN: {{ $document->currency_type->symbol }} |
{{ number_format($document->perception->amount, 2) }} |
TOTAL A
PAGAR: {{ $document->currency_type->symbol }} |
{{ number_format(($document->total + $document->perception->amount), 2) }} |
@else
TOTAL A
PAGAR: {{ $document->currency_type->symbol }} |
{{ number_format($document->total, 2) }} |
@endif
@if($balance < 0)
VUELTO: {{ $document->currency_type->symbol }} |
{{ number_format(abs($balance),2, ".", "") }} |
@endif