@extends('layouts.app') @section('content')

PO Subcon : edit

Page for edit PO Subcon
@switch($poSubcon->status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
@switch($poSubcon->status) @case(true) @break @default @endswitch
PO Subcon No : {{ $poSubcon->no }}
PO Subcon Date : {{ $poSubcon->date }}
Supplier Code : {{ $poSubcon->supplier_code }}
ETA Date : {{ $poSubcon->eta_date }}
Delivery Date : {{ $poSubcon->delivery_date }}
Notes : {{ $poSubcon->notes }}
Status : Complete
Complete At : {{ $poSubcon->complete_at }}
Material to Subcon
Input the material to be produced by the subcontractor company. And our system will automatically calculate how much raw / wip material will send to subcon based on your BOM and consumption
@csrf
Material Fullname Material Code Material Name Material Type Material UoM Qty BOM Target Qty PO Created Qty PO
{{ $poSubcon->wo->dateRange->bom->material->formatted_material }} {{ $poSubcon->wo->dateRange->bom->material_code }} {{ $poSubcon->wo->dateRange->bom->material->name }} {{ $poSubcon->wo->dateRange->bom->material->material_type_code }} {{ $poSubcon->wo->dateRange->bom->material->uom_code }} {{ $poSubcon->wo->dateRange->bom->qty }} @php $wo = $poSubcon->wo; $totalQty = \App\Models\PoSubcon::where('work_order_no', $wo->no) ->with('details') ->get() ->sum(fn($po) => $po->details->sum('qty')); @endphp {{ $totalQty }} @error('qty')
{{ $message }}
@enderror

Are you sure want to create this ? .

Additional Material
Input additional material to be produced by the subcontractor company
@csrf
@error('material_code')
{{ $message }}
@enderror
@error('qty_additional')
{{ $message }}
@enderror

Are you sure want to create this ? .

List Material to Subcon

Below is the list of Material to Subcon that you have created on this page.

@foreach ($poSubcon->details as $detail) @php $materialToSends = $detail->materialToSends; @endphp @endforeach
Material Fullname Material Code Material Name Material Type Material UoM Qty Material Need to Send Additional Action
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->material_type_code }} {{ $detail->material->uom_code }} {{ $detail->qty }} @foreach ($materialToSends as $material) @endforeach
{{ $material->material_code }} {{ $material->material->name }} {{ $material->total }} {{ $material->material->uom_code }}
@switch($detail->is_additional) @case(true) Yes @break @case(false) No @break @default @endswitch
  • Are you sure want to delete this ?

    @csrf @method('DELETE')
@switch($poSubcon->status) @case(false)

Are you sure want to save this PO ?

@csrf @method('PUT')
@break @default @endswitch @endsection @section('js') @endsection