Requisition Entry Conformation Inforomation Requisition Entry Conformation
@if (session('message'))
× {{ session('message') }}.
@endif
@csrf

{{ $ChallanEntry->company }}

Location {{ $ChallanEntry->location }} Order Cut No {{ $ChallanEntry->order_cut_no }}
Challan No {{ $ChallanEntry->challan_no }} Input Date {{ $ChallanEntry->input_date }}
Floor {{ $ChallanEntry->floor }} Line {{ $ChallanEntry->line }}
@php $sl=0 @endphp @foreach ($SAPEntry as $spl) {{-- @dd($spl) --}} itemList_id == null) style="background-color: #ff0000" @endif> {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php if ($spl->uom == 'Dzn') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 12); $total = $required_qty_pcs / 12; $dzn = floor($total); $pcs = round(($total - $dzn) * 12); $labelmessage = $dzn . ' DZN ' . $pcs . ' PCS'; } elseif ($spl->uom == 'Cone') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 1); $labelmessage = '1 Cone = 1 PCS'; } elseif ($spl->uom == 'GG') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 1728); $total = $required_qty_pcs / 1728; $gg = floor($total); $pcs = round(($total - $gg) * 1728); $labelmessage = $gg . ' GG ' . $pcs . ' PCS'; } else { $required_qty_pcs = ceil($spl->required_qty * 1); } @endphp @endforeach @php $totalRequiredQtyPcs = 0; @endphp @foreach ($SAPEntry as $spl) @php if ($spl->uom == 'Dzn') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 12); } elseif ($spl->uom == 'Cone') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 1); } elseif ($spl->uom == 'GG') { // Round up to the next integer $required_qty_pcs = ceil($spl->required_qty * 1728); } else { $required_qty_pcs = $spl->required_qty; } $totalRequiredQtyPcs += $required_qty_pcs; $totalRequiredQtyPcs = ceil($totalRequiredQtyPcs); @endphp @endforeach
Sl# Item Name Description Order No Wo No Budget Cons/DZN UOM Required Qty Remarks Required Qty (PCS)
{{-- {{ ++$sl }} --}} @if ($spl->itemList_id == !null) {{ ++$sl }} @else @endif {{ $spl->item_name }}{{ $spl->description }}{{ $spl->order_no }}{{ $spl->wo_no }}{{ number_format($spl->budget_cons_dzn, 2) }}{{ $spl->uom }}{{ number_format($spl->required_qty, 2) }}{{ $spl->remarks }} @if ($spl->required_qty == 0) @else @endif
Total {{ $SAPEntry->sum('required_qty') }} {{ $totalRequiredQtyPcs }}

Back