Pembelian (PO)

Purchase Order ke supplier.

@if ($showForm)

{{ $editId ? 'Edit' : 'Tambah' }} Purchase Order

@if ($message)
{{ $message }}
@endif
{{-- Sumber PR --}} @if (! $editId)

Buat dari Permintaan Pembelian (opsional)

@endif
@error('document_date')

{{ $message }}

@enderror
@error('supplier_id')

{{ $message }}

@enderror
{{-- Items --}}

Detail Item

@foreach ($items as $i => $row) @endforeach
Material Satuan Qty Harga Diskon % Subtotal
{{ number_format((float) $row['quantity'] * (float) $row['unit_price'] * (1 - ((float) $row['discount'] / 100)), 0, ',', '.') }}
@endif {{-- List --}}
@forelse ($orders as $po) @empty @endforelse
No. PO Tanggal Supplier Item Total Status Aksi
{{ $po->document_no }} {{ \Carbon\Carbon::parse($po->document_date)->format('d/m/Y') }} {{ $po->supplier?->name ?? '-' }} {{ $po->items_count }} {{ number_format((float) $po->total_amount, 0, ',', '.') }} @if ($po->status === 9) Batal @elseif ($po->status === 1) Open @else Selesai @endif @if ($po->status === 1) @endif
Tidak ada data.
{{ $orders->links() }}