@component('Po.components.Material') @endcomponent
{{-- --}} @foreach ($oldDT ?? [] as $item) @php $Material_Unit = DB::table('tmstmmat_unit') ->where('xvmatcode', '=', $item->xvmatcode) ->leftjoin('tmstmunit', 'tmstmunit.xvuntcode', 'tmstmmat_unit.xvuntcode') ->get() ->toArray(); @endphp @endforeach {{-- --}}
รหัส Item ID ชื่อรายการวัสดุ หน่วย จำนวนสั่งซื้อ ราคา/หน่วยส่วนลดรวม
{{ $item->xvmatcode }} {{ $item->xvmatid }} {{ $item->xvmatname }} {{ number_format($item->XFPodCostTotal, 2) }}
รวมจำนวนชิ้น {{ isset($oldHD->XIPohAmount) ? number_format($oldHD->XIPohAmount, 2) : 0 }} รวม {{ isset($oldHD->XFPohTotal) ? number_format($oldHD->XFPohTotal, 2) : 0 }}
ส่วนลดบิล
หลังลด {{ isset($oldHD->XFPohAfterBillDC) ? number_format($oldHD->XFPohAfterBillDC, 2) : 0 }}
ยอดรวมก่อนภาษี {{ isset($oldHD->XFPohBeforeVat) ? number_format($oldHD->XFPohBeforeVat, 2) : 0 }}
ภาษีมูลค่าเพิ่ม ( VAT )
XBPohIsTax) && $oldHD->XBPohIsTax == 1) checked @endif onchange="includeTax();">
%
มูลค่า Vat {{ isset($oldHD->XFPohTotalVat) ? number_format($oldHD->XFPohTotalVat, 2) : 0 }}
รวมทั้งสิ้น {{ isset($oldHD->XFPohNet) ? number_format($oldHD->XFPohNet, 2) : 00.0 }}