Mohon dapat dikerjakan produksi Part untuk :
Customer @if($workOrder->po_customer) {{ $workOrder->po_customer->customer ? $workOrder->po_customer->customer->name ?? "-" : "-" }} @else - @endif
Nomer PO {{ $workOrder->po_customer ? $workOrder->po_customer->code ?? "-" : "-" }}
Kode Produksi {{ $workOrder->code }}
@php $no = 1; $total_qty = 0; $unit_selling_unit = []; $total_selling_unit = []; @endphp @foreach($workOrder->work_order_details as $item) @if($item->product) @php $total_qty += $item->quantity; if(!in_array($item->product->selling_unit,$unit_selling_unit)){ array_push($total_selling_unit,$item->quantity); array_push($unit_selling_unit,$item->product->selling_unit); }else{ $index = array_search($item->product->selling_unit,$unit_selling_unit); $total_selling_unit[$index] += $item->quantity; } @endphp @endif @endforeach @if(count($unit_selling_unit) > 1) @else @endif
No Item Qty Keterangan Status
{{ $no++ }} {{ $item->product ? $item->product->name ?? "-" : "-" }} {{ number_format($item->quantity ?? 0,2,',','.') }} ({{ $item->product ? $item->product->selling_unit ?? "-" : "-" }}) {{ $item->description ?? "-"}} {{ $item->status }}
TOTAL PRODUKSI @foreach($unit_selling_unit as $key => $item) {{ number_format($total_selling_unit[$key] ?? 0,2,',','.') }} ({{ $item }})
@endforeach

{{ number_format($total_qty ?? 0,2,',','.') }} (Total)
{{ number_format($total_qty ?? 0,2,',','.') }}
CATATAN {{ $workOrder->description ?? "-"}}