{{-- --}} @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 XVPodName)) value="{{$item->XVPodName}}" @endif @if(isset($item->XVGrdName)) value="{{$item->XVGrdName}}" @endif > XFPodCostTotal)) value="{{number_format($item->XFPodCostTotal,2,'.','')}}" @endif @if(isset($item->XFGrdCostTotal)) value="{{number_format($item->XFGrdCostTotal,2,'.','')}}" @endif readonly/> @endforeach {{-- --}} XIPohAmount)) value="{{$oldHD->XIPohAmount}}" @endif @if(isset($oldHD->XIGrhAmount)) value="{{$oldHD->XIGrhAmount}}" @endif > XFPohTotal)) value="{{$oldHD->XFPohTotal}}" @endif @if(isset($oldHD->XFGrhTotal)) value="{{$oldHD->XFGrhTotal}}" @endif > XFPohAfterBillDC)) value="{{$oldHD->XFPohAfterBillDC}}" @endif @if(isset($oldHD->XFGrhAfterBillDC)) value="{{$oldHD->XFGrhAfterBillDC}}" @endif > XFPohBeforeVat)) value="{{$oldHD->XFPohBeforeVat}}" @endif @if(isset($oldHD->XFGrhBeforeVat)) value="{{$oldHD->XFGrhBeforeVat}}" @endif > XFPohTotalVat)) value="{{$oldHD->XFPohTotalVat}}" @endif @if(isset($oldHD->XFGrhTotalVat)) value="{{$oldHD->XFGrhTotalVat}}" @endif > XFPohNet)) value="{{$oldHD->XFPohNet}}" @endif @if(isset($oldHD->XFGrhNet)) value="{{$oldHD->XFGrhNet}}" @endif >
รหัส Item ID ชื่อรายการวัสดุ หน่วย จำนวนสั่งซื้อ จำนวนที่รับเข้า ราคา/หน่วยส่วนลดรวม
{{$item->xvmatcode}} {{$item->xvmatid}} @if(isset($item->xvmatname)) {{$item->xvmatname}} @elseif(isset($item->xvmatname)) {{$item->xvmatname}} @endif XFPodUnitCost)) value="{{number_format($item->XFPodUnitCost,2,'.','')}}" @endif @if(isset($item->XFGrdUnitCost)) value="{{number_format($item->XFGrdUnitCost,2,'.','')}}" @endif onkeypress='return isNumberKey(event)' onchange="RowValChange('{{$item->xvmatcode}}')" min="1.00" oninput="validatetwodecimal(this)"/> XFPodDiscount)) value="{{number_format($item->XFPodDiscount,2,'.','')}}" @endif @if(isset($item->XFGrdDiscount)) value="{{number_format($item->XFGrdDiscount,2,'.','')}}" @endif onkeypress='return isNumberKey(event)' onchange="RowValChange('{{$item->xvmatcode}}')" value="0.00" min="0.00" oninput="validatetwodecimal(this)" /> @if(isset($item->XFPodCostTotal)) {{number_format($item->XFPodCostTotal,2)}} @elseif(isset($item->XFGrdCostTotal)) {{number_format($item->XFGrdCostTotal,2)}} @endif
รวมจำนวนชิ้น @if(isset($oldHD->XIPohAmount)) {{number_format($oldHD->XIPohAmount,2)}} @elseif(isset($oldHD->XIGrhAmount)) {{number_format($oldHD->XIGrhAmount,2)}} @endif รวม @if(isset($oldHD->XFPohTotal)) {{number_format($oldHD->XFPohTotal,2)}} @elseif(isset($oldHD->XFGrhTotal)) {{number_format($oldHD->XFGrhTotal,2)}} @endif
ส่วนลดบิล
หลังลด @if(isset($oldHD->XFPohAfterBillDC)) {{number_format($oldHD->XFPohAfterBillDC,2)}} @elseif(isset($oldHD->XFGrhAfterBillDC)) {{number_format($oldHD->XFGrhAfterBillDC,2)}} @endif
ยอดรวมก่อนภาษี @if(isset($oldHD->XFPohBeforeVat)) {{number_format($oldHD->XFPohBeforeVat,2)}} @elseif(isset($oldHD->XFGrhBeforeVat)) {{number_format($oldHD->XFGrhBeforeVat,2)}} @endif
ภาษีมูลค่าเพิ่ม ( VAT )
XBPohIsTax) && $oldHD->XBPohIsTax==1) checked @endif @if(isset($oldHD->XBGrhIsTax) && $oldHD->XBGrhIsTax==1) checked @endif onchange="includeTax();">
XIPohTax)) value="{{$oldHD->XIPohTax}}" @endif @if(isset($oldHD->XIGrhTax)) value="{{$oldHD->XIGrhTax}}" @endif onchange="includeTax();" min="0">
%
มูลค่า Vat @if(isset($oldHD->XFPohTotalVat)) {{number_format($oldHD->XFPohTotalVat,2)}} @elseif(isset($oldHD->XFGrhTotalVat)) {{number_format($oldHD->XFGrhTotalVat,2)}} @endif
รวมทั้งสิ้น @if(isset($oldHD->XFPohNet)) {{number_format($oldHD->XFPohNet,2)}} @elseif(isset($oldHD->XFGrhNet)) {{number_format($oldHD->XFGrhNet,2)}} @endif