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

PO General : edit

Page for edit PO General

@switch($poGeneral->status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
@csrf @method('PUT')
@error('no')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@error('delivery_date')
{{ $message }}
@enderror
@error('eta_date')
{{ $message }}
@enderror
@error('supplier_code')
{{ $message }}
@enderror @if (!$poGeneral->supplier_code)
Please select supplier!
@endif
@error('notes')
{{ $message }}
@enderror

Purchase Request

Below are list Purchase Requests

@if (count($poGeneral->purchaseRequests) > 0) @foreach ($poGeneral->purchaseRequests as $purchaseRequest) @endforeach @else @endif
Purchase Request No Date PR PIC
{{ $purchaseRequest->no }} {{ $purchaseRequest->formatted_date }} {{ $purchaseRequest->createdBy->full_contact }}
No Purchase Request Data

Add Materials

Add some materials you want to buy

@csrf
@error('material_code')
{{ $message }}
@enderror
@error('qty')
{{ $message }}
@enderror
@error('currency_code')
{{ $message }}
@enderror
@error('price_per_unit')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror
@foreach ($poGeneral->details as $detail) @endforeach
Material Fullname Material Code Material Type Material UoM Qty Order Currency Code Price per Unit Amount Action
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->material_type_code }} {{ $detail->material->uom_code }} {{ $detail->qty }} {{ $detail->currency_code }} {{ $detail->formatted_price_per_unit }} {{ $detail->formatted_amount }}
  • Are you sure want to delete this ?

    @csrf @method('DELETE')

Are you sure want to delete this ? .

Once you delete you cannot recover this PO!

@csrf @method('DELETE')
@if (count($poGeneral->details) > 0 && $poGeneral->supplier_code)

Are you sure want to complete this ? .

Once you complete you can continue to fill invoice

@csrf @method('PUT')
@else @endif
@endsection @section('js') @endsection