← Back to {{ $purchaseOrder->po_number }}
@if ($receivedEdit)
This order has already been received. As an admin you can change the product on a line, the dates and the notes. Changing the product of a received line moves its stock (two adjustments stay in the product history). Quantities, costs and the number of lines are locked.
@endif

Details

{{ $purchaseOrder->supplier->name }} · delivering to {{ $purchaseOrder->warehouse->name }}

Lines

@foreach ($lines as $index => $line) @php $product = $this->productMap()->get((int) $line['product_id']); $lineTotal = (int) ($line['quantity'] ?: 0) * (float) ($line['unit_cost'] ?: 0); $gap = $importGapsByProductId[(int) $line['product_id']] ?? null; @endphp $gap])> @endforeach
# Product Box Quantity Unit cost Line total
{{ $index + 1 }} @if ($gap)
⚠ {{ implode('; ', $gap) }}
@endif
{{ $product?->box_quantity ?: '—' }}
{{ number_format($lineTotal, 2) }} @unless ($receivedEdit) @endunless
@unless ($receivedEdit)
@if ($this->searchResults()->isNotEmpty())
    @foreach ($this->searchResults() as $product)
  • @endforeach
@endif
@endunless @php $totals = $this->totals(); @endphp
Total quantity
{{ $totals['quantity'] }} PCS
Subtotal
{{ number_format($totals['subtotal'], 2) }}
GST
{{ number_format($totals['tax_total'], 2) }}
Order total
₹{{ number_format($totals['total'], 2) }}
Save changes Cancel