@inject('um', 'App\Models\UnitMeasure')
| {{$ItemNro}} |
{{$item['code']}} |
@if(isset($item['notes']))
{{$item['description']}}
{{$item['notes']}}
@else
{{$item['description']}}
@endif
|
{{number_format($item['invoiced_quantity'], 2)}} |
{{$um->findOrFail($item['unit_measure_id'])['name']}} |
@if(isset($item['tax_totals']))
@if(isset($item['allowance_charges']))
{{number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2)}} |
@else
{{number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2)}} |
@endif
@else
@if(isset($item['allowance_charges']))
{{number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2)}} |
@else
{{number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2)}} |
@endif
@endif
@if(isset($item['tax_totals']))
@if(isset($item['tax_totals'][0]['tax_amount']))
{{number_format($item['tax_totals'][0]['tax_amount'] / $item['invoiced_quantity'], 2)}} |
@else
{{number_format(0, 2)}} |
@endif
@else
E |
@endif
@if(isset($item['allowance_charges']))
{{number_format($item['allowance_charges'][0]['amount'] / $item['invoiced_quantity'], 2)}} |
{{number_format(($item['allowance_charges'][0]['amount'] * 100) / $item['allowance_charges'][0]['base_amount'], 2)}} |
@if(isset($item['tax_totals']))
{{number_format(($item['line_extension_amount'] + ($item['tax_totals'][0]['tax_amount'])), 2)}} |
@else
{{number_format(($item['line_extension_amount']), 2)}} |
@endif
@else
{{number_format("0", 2)}} |
{{number_format("0", 2)}} |
{{number_format($item['invoiced_quantity'] * ($item['line_extension_amount'] / $item['invoiced_quantity']), 2)}} |
@endif
@endforeach