{{ csrf_field() }}
{{--
@include('admin.partials.officialUnofficial',[ 'data'=>[ 'branch_id' => $item->branch->id, 'is_official' => $item->is_official ?? null, 'type' =>'purchase_orders', ]])
--}}
@php $vendor = $item->vendor; $exemption_date = date('d/m/Y', strtotime($vendor->tax_exemption_expiry_date)); $exemption = 0; if($vendor->is_exemption == 1 && $vendor->tax_exemption_expiry_date > \Carbon\Carbon::now()){ $exemption = 1; } @endphp
@include('admin.partials.reference',['voucher_reference' => $voucher_reference])
@include('admin.purchase.order.partials.image_upload',['voucher_attachments'=>$voucher_attachments , 'show_update' => true])

{{__('lang.requisition_item')}}

@if(!empty($order_items)) @foreach($order_items as $order_item) @php if(!empty($order_item->discount)) { if($order_item->discount_type_percentage_or_fixed == true) { $amount = ($order_item->amount - $order_item->current_quantity * $order_item->discount / 100); $discount = $order_item->discount; } else { $amount = $order_item->amount - $order_item->discount; $discount = $order_item->discount; } } else { $amount = $order_item->amount; } $discount_total += $discount; @endphp @endforeach @endif {{-- --}}
{{__('lang.item')}} {{__('lang.unit')}} {{__('lang.description')}} {{__('lang.qty')}} {{__('lang.discount_type')}} {{__('lang.discount')}} {{__('lang.rate')}} ({{ $transaction->get_currency_code()}}) {{__('lang.total')}} ({{ $transaction->get_currency_code() }}) {{__('lang.action')}}
{{$order_item->name}} {{$order_item->unit}}
discount_type_percentage_or_fixed == false ? 'checked' : '' }} onchange="setRequisitionTotalAmount(this)"> discount_type_percentage_or_fixed == true ? 'checked' : '' }} onchange="setRequisitionTotalAmount(this)">
{{__('lang.sub_total')}}

{{__('lang.total_discount')}}

{{ $discount_total }}

{{__('lang.extra_discount')}}
{{__('lang.purchase_order_amount')}} {{$transaction->systemSettingCurrency()}} {{$transaction->convert_money_format($item->totalPOAmount)}}
{{-- Add Transporation Cost --}} @if($commonHelper::getSystemPermissions()['purchase_order']['grn'] != '1' && !$has_supply_chain_module)

{{__('lang.additional_cost')}}

{{__('lang.add_transportation_cost')}}
{{__('lang.add_labour_cost')}}
{{__('lang.other_charges')}}
{{__('lang.additional_amount')}} {{$transaction->systemSettingCurrency()}} {{ $transaction->convert_money_format($item->transportAmount + $item->labourAmount) }}
@endif {{-- TAX START --}} @if($wht_tax)

{{__('lang.wht')}}

{{-- --}} {{-- --}} {{-- --}}
{{__('lang.tax')}} %
Fixed
{{__('lang.tax_amount')}} {{$transaction->systemSettingCurrency()}}
{{__('lang.purchase_order_amount')}} {{$transaction->systemSettingCurrency()}} 0.00
@endif {{-- TAX END --}} {{-- GST --}} @if($gst_tax)

{{__('lang.general_sales_tax')}}

{{__('lang.tax')}} %
{{__('lang.general_sales_amount')}} {{$transaction->systemSettingCurrency()}}
@endif {{-- GST --}} {{-- Total Cost --}} {{-- Total Cost --}}
{{__('lang.total_amount')}} {{$transaction->systemSettingCurrency()}}
@php $grn_enabled = $commonHelper::getSystemPermissions()['purchase_order']['grn']; $transport_labour_amount = (!$grn_enabled) ? ($item->transportAmount + $item->labourAmount ) : 0; $total_po_amount=$item->totalPOAmount + ($transport_labour_amount) ; @endphp {{$transaction->convert_money_format($total_po_amount - $discount_total)}}
@include('admin.partials.approval') {{-- --}} Make Payment @if($pdf) {{ App\Models\Common::print_pdf_btn() }} @endif {{__('lang.back')}}
@include('admin.partials.created_details')