@php
$i = 1;
$_total_ = 0;
$_subtotal_ = 0;
@endphp
@if ($global == 'G')
@foreach ($Productos as $indice => $producto)
|
{{ $i }}
|
{{ $producto->clave_interna }} |
{{ (string) $producto->id_producto_servicio === '1010101' ? '0' . $producto->id_producto_servicio : $producto->id_producto_servicio }}
|
{{ $producto->descripcion }}
|
{{ number_format($producto->cantidad, $No_Decimal) }}
|
{{ $producto->unidad_m_sat }}
|
{{ $producto->unidad_medida }}
|
$ @php
$decimales = array_key_exists(1, explode('.', $producto->valor_uni)) ? strlen((string) explode('.', $producto->valor_uni)[1]) : 2;
$valor_uni = round($producto->valor_uni, $decimales);
@endphp
{{ number_format($valor_uni, $decimales) }}
|
$
{{ number_format(round(floatval($valor_uni) * floatval($producto->cantidad), $No_Decimal), $No_Decimal) }}
|
$
{{ number_format(round($producto->descuento, $No_Decimal), $No_Decimal) }}
|
{{ number_format(round($producto->descuento, $No_Decimal), $No_Decimal) }}
|
|
{{ $producto->cuenta_predial ?? '' }}
|
@if (isset($cuentaTerceros) && count($cuentaTerceros))
|
@php
$add_inpust_terceros = true;
@endphp
@foreach ($cuentaTerceros as $cuenta)
@if ($cuenta->id_detalle == $producto->id_detalle_comp)
@php
$add_inpust_terceros = false;
@endphp
@endif
@endforeach
@if ($add_inpust_terceros)
@endif
|
@else
|
@endif
|
@if (count($inf_aduanera))
@php
$clave_sat=(string) $producto->id_producto_servicio === '1010101' ? '0' . $producto->id_producto_servicio : $producto->id_producto_servicio;
$activar_aduanera=true;
@endphp
@foreach ($inf_aduanera as $pedimento)
@if ($producto->id_detalle_comp==$pedimento->id_detalle_concepto)
@if ($activar_aduanera)
@php
$activar_aduanera=false;
@endphp
@endif
@endif
|
@php
$i++;
@endphp
@endforeach
@else
@php $indice = 0; @endphp
@foreach ($Productos as $producto)
|
{{ $i }}
|
{{ $producto->clave_interna }} |
{{ (string) $producto->id_producto_servicio === '1010101' ? '0' . $producto->id_producto_servicio : $producto->id_producto_servicio }}
|
{{ $producto->descripcion }}
|
{{ number_format($producto->cantidad, $No_Decimal) }}
|
{{ $producto->unidad_m_sat }}
|
{{ $producto->unidad_medida }}
|
$ @php
$decimales = array_key_exists(1, explode('.', $producto->valor_uni)) ? strlen((string) explode('.', $producto->valor_uni)[1]) : 2;
$valor_uni = round($producto->valor_uni, $decimales);
@endphp
{{ number_format($valor_uni, $decimales) }}
|
$
{{ number_format(round(floatval($valor_uni) * floatval($producto->cantidad), $No_Decimal), $No_Decimal) }}
|
$
{{ number_format(round($producto->descuento, $No_Decimal), $No_Decimal) }}
|
{{ number_format(round($producto->descuento, $No_Decimal), $No_Decimal) }}
|
$ {{ $producto->base_iva ?? '0' }}
|
|
{{ $producto->cuenta_predial ?? '' }}
|
c_ObjImp == '02') value="{{ $producto->total_impuesto_tra }}" @else value="0" @endif
type="hidden">
c_ObjImp == '02') value="{{ $producto->total_impuesto_ret }}" @else value="0" @endif
type="hidden">
|
@if (isset($cuentaTerceros) && count($cuentaTerceros))
@php
$add_inpust_terceros = true;
@endphp
@foreach ($cuentaTerceros as $indice => $cuenta)
@if ($cuenta->id_detalle == $producto->id_detalle_comp)
@php
$add_inpust_terceros = false;
@endphp
@endif
@endforeach
@if ($add_inpust_terceros)
@endif
|
@else
|
@endif
@if (count($inf_aduanera))
@php
$clave_sat=(string) $producto->id_producto_servicio === '1010101' ? '0' . $producto->id_producto_servicio : $producto->id_producto_servicio;
$activar_aduanera=true;
@endphp
@foreach ($inf_aduanera as $pedimento)
@if ($producto->id_detalle_comp==$pedimento->id_detalle_concepto)
@if ($activar_aduanera)
@php
$activar_aduanera=false;
@endphp
@endif
@endif
|
@php
$i++;
@endphp
@php $indice++; @endphp
@endforeach
@endif