Purchase Requests¶
Create, filter, and manage PRs (Purchase Requests). The page includes a left menu, header, filters, a table, and modals for create/edit and RFQ/supporting docs.
Filters (top right):
- Province: dropdown (All Provinces + specific list)
- Search: text (debounced)
- Add button: visible only if you have “create PurchaseRequest” permission
Table columns:
- Id
- Requisition Number (shows “Extended” badge if this PR is an extension)
- Total Amount + Currency code
- Status (Approved / Pending / Rejected with color badges)
- Date (dd-mm-yy)
- Type (Goods / Service / Works)
- Direct Purchase (check icon when is_direct_purchase == 1)
- Share Cost (check icon if enabled)
- Item Mode (Static / Dynamic)
- Province
- Donor Name
- Requester
- Budget Line
- Actions (dropdown)
Actions (permission-gated):
- Edit (edit PurchaseRequest)
- Delete (delete PurchaseRequest)
- Details (view PurchaseRequest details) → opens PR details route
- Create PO (create Purchase_Order) → only for Goods/Service types
- Print with dates / Print without dates (print PurchaseRequest report)
- Approval (approve PurchaserquestApprovals)
- Print RFQ (print PurchaseRequest RFQ; only when status == approved)
- Supporting Docs (add PurchaseRequest documents; only when status == approved)
- Create Direct Purchase (create DirectPurchase; only when status == approved and direct purchase enabled)
- Extend PR (create PurchaseRequest; only when status == approved)
Create/Edit PR modal fields:
- Date, Currency, Exchange Rate
- Recipient (optional)
- If Share Cost is OFF (is_share_cost == false): Budget Line, Account Code, Donor Name, Project Name on the header
- Type (Goods/Service/Works), Province, Is Direct Purchase?, Is Share Cost?, Item Entry Mode (Static/Dynamic), Description
- Details table (repeated rows):
- Item (Dynamic mode: searchable picker bound to Items; Static mode: free text)
- Description
- Category (dropdown when Dynamic; free text when Static)
- Unit Type (Dynamic)
- Unit (Dynamic measure list or free text in Static mode)
- Quantity
- Est. Unit Price
- If Share Cost ON (is_share_cost): Budget Line, Account Code, Donor Name, Project Name on each row
- Delete row button; Add row button below
Other modals:
- RFQ modal (for generating Request For Quotation): Start Date, End Date, Description; generates an RFQ PDF.
- Supporting Documents modal: upload or view/delete a single supporting document for the approved PR.
- Delete confirmation modal.
Notes:
- Many buttons and actions require specific permissions. If you don’t see an action, you likely don’t have the corresponding permission.
- Currency amounts show the code (e.g., AFN) and are formatted.
Screenshot:
Access & route¶
- Permission:
view PurchaseRequest - Route name:
procurement.prf - Sidebar: see
resources/views/livewire/procurement/pr-menu.blade.php