@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 }}
Currency Code : {{ $poSubcon->currency_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 Target Qty PO Price Subcon per Unit
{{ $poSubcon->wo->finishGood->formatted_material }} {{ $poSubcon->wo->finishGood->code }} {{ $poSubcon->wo->finishGood->name }} {{ $poSubcon->wo->finishGood->material_type_code }} {{ $poSubcon->wo->finishGood->uom_code }} {{ $poSubcon->wo->qty_target }} @error('qty')
{{ $message }}
@enderror
@error('price_per_unit')
{{ $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
@error('price_per_unit')
{{ $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 Currency Code Price Subcon per Unit Total Price Additional Action
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->material_type_code }} {{ $detail->material->uom_code }} {{ $detail->qty }} @if (!$materialToSends->isEmpty()) @foreach ($materialToSends as $material) @endforeach
Material Code Material Name Qty UoM Currency Code Price per Unit Total Price
{{ $material->material_code }} {{ $material->material->name }} {{ $material->total }} {{ $material->material->uom_code }} {{ $material->currency_code }} {{ number_format($material->price_per_unit, 2) }} {{ number_format($material->total_price, 2) }}
@endif
{{ $poSubcon->currency_code }} {{ number_format($detail->price_per_unit, 2) }} {{ number_format($detail->total_price, 2) }} @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