Skip to content

Purchase Orders

Create and manage POs. Filter, view status, and take actions including GRN creation and PDF preview.

Filters:

  • Search
  • Province (All Provinces + list)

Table columns:

  • (ID)

  • Order Number (shows “Extended” badge when extended from another PO)
  • Order Date
  • Total Amount + Currency code
  • Requester
  • Status (Approved/Pending/Open/Rejected with color badge)
  • Supplier
  • Project
  • Account
  • Department
  • Province
  • Delivered Quantity (sum of items)
  • Remaining Quantity (ordered – delivered)
  • Actions

Actions (permission-gated):

  • Edit (edit Purchase_Order)
  • Delete (delete Purchase_Order) with confirmation and error display if blocked
  • Create GRN (create Purchase_Order GRN) when status in [open, pending]
  • Extend (create Purchase_Order) to extend from existing PO
  • Details (view Purchase_Order Details)
  • Preview PDF (generates embedded PDF preview in a modal)

Add/Edit/Extend PO modal:

  • Select Purchase Request (searchable dropdown binds requester automatically)
  • Issue Date, Start Date, End Date
  • Supplier (searchable), Project (searchable), Department (searchable)
  • Province (dropdown)
  • Delivery Location
  • Account (optional searchable)
  • Currency and Exchange Rate
  • Advanced Notice (English/Persian) toggle
  • Description, Persian Description, Remarks
  • Items table:
    • Item (searchable picker pulls category, unit type, measure, price)
    • Category, Unit Type, Measure (dropdowns)
    • Quantity, Unit Price
    • Delete row / Add row

Other modals:

  • Delete confirmation modal with error messaging
  • PDF preview modal (embed)

Access & route

  • Permission: view Purchase_Order
  • Route name: procurement.purchase_order
  • Sidebar: see resources/views/livewire/procurement/pr-menu.blade.php