Purchase order.
A shortage ahead becomes an approved order that the supplier has confirmed line by line. Code drafts the need and checks price, limit and repeats; the owner approves above 200,000 UAH. AI reads the confirmation, small print included, and code compares it with the order.
- Company
- Demo Manufacturer LLC
- Starts when
- Stock will fall below its minimum
- How often
- Every working day, one run per order
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | Code drafts a request for parts Selected | Reordering rules and need checks · Automation, no AI | Any quantity below the minimum and 2 more | 5 |
| 2 | Purchasing manager completes the request Selected | Purchasing manager | The need rounded up to a full package and 2 more | 5 |
| 3 | Code checks the request and the limit Selected | Order checks · Automation, no AI | Price within 0.5 % of the agreed price and 6 more | 5 |
| 4 | Owner approves the order Selected | Owner | Limit 200,000 UAH an order, tax included and 1 more | 6 |
| 5 | Purchasing manager sends the order Selected | Purchasing manager | Exact and 1 more | 5 |
| 6 | Supplier confirms the order Selected | Supplier | No check at this step | 2 |
| 7 | AI agent reads the confirmation Selected | Confirmation agent · AI agent | No check at this step | 2 |
| 8 | Code compares confirmation and order Selected | Confirmation checks · Automation, no AI | Price within 0.5 % of the order line and 5 more | 2 |
Rollout stage: 2 · AI agent on supplier invoices; 5 · Orders, stock, serial numbers and production; 6 · Month-end close and approvals.
Before
How it was done before
The stock sheet in Google Sheets was read once a week and orders went out as letters. A confirmation was opened only to see that it came.
Where it breaks without control
- The supplier confirms at a new price in the small print, and the bill is the first paper anyone compares.
- One purchase is split into two orders, each a little under the owner's limit.
- The same part is ordered twice, once from the stock list and once for a production order.
- A part that needs an end-user statement is ordered without one, and the goods cannot move.
Controls
What is checked, and who signs
Checks
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Code drafts a request for parts | Stock on hand plus coming less needed against the minimum; each need against the requests and orders already open for the part | Any quantity below the minimum; each need covered once; goods in the hold place and batteries past their 90 days check not counted as stock | A need that an open order covers makes no new line. Where no price of the part is valid, Odoo would still take the first supplier on its list and draft a line with no agreed price; our module makes no such line, and the part waits in the exception queue of the purchasing manager until a valid price comes from New supplier. |
| 2 · Purchasing manager completes the request | The quantity against the need and the supplier's package size; the delivery date against the date needed; the supplier against the other approved suppliers of the part | The need rounded up to a full package; delivery not later than the date needed; the lowest landed cost | A larger quantity, a later date or a dearer supplier needs a reason on the line; without it our module does not let the request be confirmed. |
| 3 · Code checks the request and the limit | Price against the agreed price of the day; quantity against the supplier's minimum; open orders for the same part; prepayment share; supplier and sanctions result; each flagged line against its end-user document; the order's total with tax, together with the same supplier's other requests of the day, against the limit | Price within 0.5 % of the agreed price; quantity not below the minimum; no open order for the same need; share not above the approved one; supplier approved and cleared by the last screening, not older than the night before; an end-user document asked for or in force for each flagged line; the owner's limit 200,000 UAH at the NBU rate of the day | The request stays a request for quotation and waits with each difference in the exception queue of the purchasing manager, who corrects it, cancels it or asks for a new agreed price, which the owner approves. A flagged line lets the order be confirmed, but our module keeps it from being sent until the statement is in force. When requests of one day to one supplier pass the limit together, the one that passes it goes to the owner with the earlier ones beside it. Odoo asks for approval from its set amount on, so the amount is set 0.01 above the limit. Odoo converts at the order date, so our module sets that date to the day of the check. |
| 4 · Owner approves the order | The order's total against the last prices paid and the cash forecast | Limit 200,000 UAH an order, tax included; on the rest the owner decides | A refused order goes back to a request for quotation with the owner's reason or is cancelled; a changed one passes step 3 again. The purchasing manager cannot approve it, because in Odoo only a purchase administrator can, and that right is the owner's alone. A later change of supplier, total, currency or share cancels the approval. |
| 5 · Purchasing manager sends the order | The PDF against the order, the address against the supplier record, the block on sending against the end-user document | Exact; no block left | Our module does not send to an address that is not on the supplier record, nor an order that is blocked. The purchasing manager corrects the record or waits for End-user documents. |
| 8 · Code compares confirmation and order | Price, quantity and date of each line; currency, delivery terms and prepayment; the paper's total against its own lines; the list of conditions outside the table | Price within 0.5 % of the order line; quantity exact; date not later than ordered; currency, delivery terms and prepayment share exact; total equal to the lines to the cent; no condition outside the table that adds a charge or changes a price | The order stays not acknowledged and waits in the purchasing manager's exception queue, line by line, with the sentence of the small print. The purchasing manager asks for a corrected confirmation or accepts a later date that production still meets. A new price, quantity or term is accepted only after the owner opens the locked order for a change, and it passes step 3 again. An order with no confirmation by its due date is listed in the same queue. |
Duties by role
What the action log records
| Step | Record | What is written |
|---|---|---|
| 1 · Code drafts a request for parts | Agent action log | One line per need, with the figures it was counted from |
| 3 · Code checks the request and the limit | Agent action log | One line per check result |
| 7 · AI agent reads the confirmation | Agent action log | One line per write, with the old and the new value |
| 8 · Code compares confirmation and order | Agent action log | One line per check result |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Shipment from a supplier | A confirmed order, to be shipped now or after its prepayment | Code compares confirmation and order |
| Prepayment to a supplier abroad | A confirmed order that asks for a prepayment, with its share | Code compares confirmation and order |
| End-user documents | A request for quotation with a part or a country that has the flag | Purchasing manager completes the request |
| Cash forecast | A confirmed order with its amounts, currency and dates | Code compares confirmation and order |
Work comes from
| Process | What passes | At step |
|---|---|---|
| New supplier | An approved supplier with prices, terms and a validated account | Owner validates the bank account |
| Equipment maintenance and calibration | A new tool to buy, or an outside repair to order | Owner decides to keep, repair or replace |
| Dealer order to confirmation | A spare part an order needs that is neither in stock nor on order | Code confirms the order |
| Demand plan | New minimums of B and C parts, and A parts that must be ordered now | Code updates the reordering rules |
| Production capacity plan | Parts not covered to their production date, with the last day to order | Code finds the day each part runs out |
| Production capacity plan | Outside machining the owner approved, with quantity and date | Owner approves overtime or outside work |
| Engineering change | Open lines of the old part to change or cancel, and the need for the new one | Code puts the new revision in force |
| End-user documents | A purchase order that may be sent with its statement | Code files the statement, lifts the block |
Want this process checked on your data?
Tell us where it goes wrong.