Purchase requests
Payables' purchase requests. A member asks to buy something, the request is checked against your spending policy and budgets, approved, compared across up to five vendor quotes, and turned into an issued purchase order in one step.
A purchase request is how a member asks to buy something before anything is ordered. It lives in
Finance > Purchase requests (/finance/purchase-requests), part of the Payables module (entitlement
finance.payables). When Payables is off, the page says so and every request tool answers 403 product_not_enabled.
Asking
New request is a short form that works on a phone: what is needed, how many, the estimated price of one, the
currency, when it is needed and why. A suggested vendor is optional. More lines go through finance_request_create or
POST /api/v1/finance/purchase-requests. Each request is numbered REQ-000001, per entity.
The entity, cost centre, project and category come from your Finance profile when you leave them empty: your default entity, cost centre, default project and default category. They are filled in when the request is made and again when it is sent.
Sending it
Send for approval checks the request first. It is held, with the reasons shown, when:
- it has no lines, or a line has no estimated amount;
- it has no need-by date or no reason;
- a line has no account and the request has no category, so its budget cannot be found;
- quotes are attached and none is chosen, or the chosen quote is in another currency or for another total than the lines;
- the spending policy in force blocks it. With a budget rule set to block, a request that would take a budget below zero is held and not sent.
A held request is changed and sent again. With a budget rule set to warn, the request goes on, flagged over_budget
(or out_of_policy for another warn rule). The warning is kept on the request, and the approver sees it with what each
budget has before and after the request.
Approval goes through the approvals engine as document type purchase_request. With no approval policy
for it, a controller of its entity approves, never the requester. A policy can route on the flags, the amount, the cost
centre or the category. When it is approved, the estimate is committed against every budget it touches.
Quotes
Attach up to five vendor quotes to a draft, held or rejected request. Type one in (vendor, total, lead time, valid until), or pick a document you sent to Capture: its latest reading gives the vendor, currency and total, and anything you type wins. A vendor name that matches a Finance vendor is linked to it.
The request shows its quotes side by side: ranked by total among those in its currency (ties go to the shorter lead time), how far each is above the cheapest and from the estimate, and which have expired. Quotes in another currency are listed but not ranked. Choose quote records the one to order from and why. The reason is required.
Turning it into an order
Make purchase order turns an approved request into an issued purchase order in one step:
- the vendor is the chosen quote's, or the request's suggested vendor;
- the lines, cost centre and project are the request's, and the order links the chosen quote's document;
- the order is numbered and issued at once, because the request's approval stands for it.
The budget counts the item once. What the request committed is released and the order commits exactly that amount, in the same transaction. Making the order again returns the same order. Cancelling an approved request releases its commitment.
Who sees and does what
A member with only the requester role sees their own requests and nothing else. The database query keeps them to
their rows, as it does for expenses.
| Action | Roles |
|---|---|
Make, change, quote on, send and cancel your own requests (requests.submit) |
requester, ap_clerk, controller |
See every request on an entity (po.read) |
ap_clerk, controller, auditor |
Add or choose quotes on, cancel, or turn into an order any request on an entity (po.write) |
ap_clerk, controller |
| Approve | Whoever the approval policy names; a controller by default |
Rights are per entity: see Finance roles. For an agent, making and changing a request are drafts.
Tools and API
| Tool | REST | What it does |
|---|---|---|
finance_request_list |
GET /api/v1/finance/purchase-requests |
Requests, newest first; view mine or all, filter by status and entity |
finance_request_get |
GET /api/v1/finance/purchase-requests/{id} |
One request with its lines, hold reasons, warnings and quotes compared |
finance_request_create |
POST /api/v1/finance/purchase-requests |
A draft request |
finance_request_update |
PATCH /api/v1/finance/purchase-requests/{id} |
Change a draft, held or rejected request |
finance_request_submit |
POST /api/v1/finance/purchase-requests/{id}/submit |
Check it and send it for approval |
finance_request_convert |
POST /api/v1/finance/purchase-requests/{id}/convert |
Turn an approved request into an issued order |
finance_request_cancel |
POST /api/v1/finance/purchase-requests/{id}/cancel |
Cancel it with a reason |
finance_requestquote_add |
POST /api/v1/finance/purchase-requests/{request_id}/quotes |
Attach a quote, typed or read from a document |
finance_requestquote_choose |
POST /api/v1/finance/purchase-requests/{request_id}/choose-quote |
Choose a quote and say why |
Every change is on the audit trail under subject kind purchase_request:
finance.purchase_request.created, .updated, .held, .submitted, .approved, .rejected, .quote_added,
.quote_chosen, .converted and .cancelled. The order it becomes has its own finance.po.created and
finance.po.issued.
Not yet: editing the profile defaults from the console (they are set with the member's Finance profile), and a quote document type of its own in Capture (a quote is read like an invoice).