@php $apply_conversion_to_pen = $request_apply_conversion_to_pen == 'true'; $unit_price = $value->unit_price; $total_isc = $value->total_isc; $total = $value->total; $description_apply_conversion_to_pen = null; // aplicar conversión si es que esta habilitada la configuracion if($apply_conversion_to_pen && $value->isCurrencyTypeUsd()) { $total = $value->getConvertTotalToPen(); $unit_price = $value->getConvertUnitPriceToPen(); $total_isc = round($value->getConvertTotalIscToPen(), 2); $description_apply_conversion_to_pen = '(Conv.)'; } // aplicar conversión si es que esta habilitada la configuracion @endphp {{$document->date_of_issue->format('Y-m-d')}} {{ optional($document->user)->name}} {{-- @if($isSaleNote) {{ $stablihsment['district'] }} {{ $stablihsment['department'] }} {{ $stablihsment['province'] }} @endif --}} {{$document->series}} {{$document->number}} {{-- @if( $type == 'sale') {{ $purchseOrder }} @endif --}} {{$document->supplier->identity_document_type_id}} {{$document->supplier->number}} {{$document->supplier->name}} {{$document->currency_type_id}} {{ $description_apply_conversion_to_pen ?? ''}} {{-- {{$document->exchange_rate_sale}} --}} {{$value->item->unit_type_id}} {{-- {{$value->relation_item ? $value->relation_item->internal_id:''}} --}} {{$value->relation_item->brand ? $value->relation_item->brand->name : ''}} {{-- @if($type == 'sale') {{ $model }} @endif --}} {{$value->item->description}} {{$value->relation_item->category ? $value->relation_item->category->name : ''}} {{number_format($value->quantity, 2)}} {{round($unit_price, 6)}} {{optional($value->system_isc_type)->description}} {{$total_isc > 0 ? $total_isc : ''}} {{round($total, 2)}} {{-- --}}