@foreach ($document->items as $row)
@if ((int) $row->quantity != $row->quantity)
{{ $row->quantity }}
@else
{{ number_format($row->quantity, 0) }}
@endif
|
{{ symbol_or_code($row->item->unit_type_id) }} |
@if ($row->name_product_pdf)
{!! $row->name_product_pdf !!}
@else
{!! $row->item->description !!}
@endif
@if ($row->attributes)
@foreach ($row->attributes as $attr)
@if ($attr->attribute_type_id === '5032')
@php
$total_weight += $attr->value * $row->quantity;
@endphp
@endif
{!! $attr->description !!} :
{{ $attr->value }}
@endforeach
@endif
{{-- @if ($row->discounts)
@foreach ($row->discounts as $dtos)
{{ $dtos->factor * 100 }}% {{$dtos->description }}
@endforeach
@endif --}}
@if ($row->item->is_set == 1)
@inject('itemSet', 'App\Services\ItemSetService')
{{ join('-', $itemSet->getItemsSet($row->item_id)) }}
@endif
@isset($row->item->lots)
@if(count($row->item->lots) > 0)
Series:
@foreach ($row->item->lots as $key => $lot)
@if (isset($lot->has_sale) && $lot->has_sale)
{{ $lot->series }}
@if ($key != count($row->item->lots) - 1)
/
@endif
@endif
@endforeach
@endif
@endisset
|
{{ $row->item->model ?? '' }} |
@inject('itemLotGroup', 'App\Services\ItemLotsGroupService')
{{ $itemLotGroup->getLote($row->item->IdLoteSelected) }}
|
{{ number_format($row->unit_price, 2) }}
|
{{--
@if ($row->discounts)
@php
$total_discount_line = 0;
foreach ($row->discounts as $disto) {
$total_discount_line = $total_discount_line + $disto->amount;
}
@endphp
{{ number_format($total_discount_line, 2) }}
@endif
| --}}
{{ number_format($row->total, 2) }} |
@endforeach
@for ($i = 0; $i < $cycle_items; $i++)
|
|
|
|
|
|
|
@endfor
Vendedor: {{ $document->user->name }}
|
SON:
@foreach (array_reverse((array) $document->legends) as $row)
@if ($row->code == '1000')
{{ $row->value }} {{ $document->currency_type->description }}
@else
{{ $row->code }}: {{ $row->value }}
@endif
@endforeach
|
|
{{--
| --}}
OP. GRAVADA {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_taxed, 2) }} |
@php
$paymentCondition = \App\CoreFacturalo\Helpers\Template\TemplateHelper::getDocumentPaymentCondition(
$document,
);
@endphp
{{-- Condicion de pago Crédito / Contado --}}
Condición de Pago: {{ $paymentCondition }}
@if ($document->payment_method_type_id)
Método de Pago: {{ $document->payment_method_type->description }}
@endif
@if ($document->payment_condition_id === '01')
@if ($payments->count())
Pagos:
@php $payment = 0; @endphp
@foreach ($payments as $row)
-
{{ $row->payment_method_type->description }} -
{{ $row->reference ? $row->reference . ' - ' : '' }}
{{ $document->currency_type->symbol }}
{{ $row->payment + $row->change }}
@endforeach
@endif
@else
@foreach ($document->fee as $key => $quote)
-
{{ empty($quote->getStringPaymentMethodType()) ? 'Cuota #' . ($key + 1) : $quote->getStringPaymentMethodType() }}
/ Fecha: {{ $quote->date->format('d-m-Y') }}
/ Monto: {{ $quote->currency_type->symbol }}{{ $quote->amount }}
@endforeach
@endif
{{-- retencion --}}
@if ($document->retention)
Información de la retención
Base imponible: {{ $document->currency_type->symbol }}
{{ $document->retention->base }}
Porcentaje: {{ $document->retention->percentage * 100 }}%
Monto: {{ $document->currency_type->symbol }}
{{ $document->retention->amount }}
@endif
{{-- retencion --}}
@if (($document->retention || $document->detraction) && $document->total_pending_payment > 0)
M. Pendiente: {{ $document->currency_type->symbol }}
{{ number_format($document->total_pending_payment, 2) }}
@endif
@php
$total_packages = $document->items()->sum('quantity');
@endphp
Total bultos:
@if ((int) $total_packages != $total_packages)
{{ $total_packages }}
@else
{{ number_format($total_packages, 0) }}
@endif
Total Peso:
{{ $total_weight }} KG
Observación:
@foreach ($document->additional_information as $information)
@if ($information)
{{ $information }}
@endif
@endforeach
|

Código Hash: {{ $document->hash }}
|
|
{{--

Código Hash: {{ $document->hash }}
| --}}
OP. INAFECTAS {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_unaffected, 2) }} |
OP. EXONERADAS {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_exonerated, 2) }} |
OP. GRATUITAS {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_free, 2) }} |
TOTAL DCTOS. {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_discount, 2) }} |
I.G.V. (18%) {{ $document->currency_type->symbol }}
|
{{ number_format($document->total_igv, 2) }} |
TOTAL A PAGAR. {{ $document->currency_type->symbol }}
|
{{ number_format($document->total, 2) }} |
{{-- @if (($document->retention || $document->detraction) && $document->total_pending_payment > 0)
M. Pendiente: {{ $document->currency_type->symbol }} |
{{ number_format($document->total_pending_payment, 2) }} |
@endif --}}