A buyer requests twelve cartons. The purchasing manager approves the price. ERPNext creates the purchase order, but the approval app times out before it receives the order number. The buyer now sees a Retry button. What stops a second order for another twelve cartons?
You can keep accounting in ERPNext and move the sign-off elsewhere. The first design decision is who owns each number. Give the approval app a request reference that exists before anyone approves it. Let ERPNext assign the purchase order number. Keep both on the handoff record so purchasing can trace one to the other.
Keep the buying documents together
ERPNext’s Purchase Order records the supplier, items, quantities and rates. A submitted order can lead to a Purchase Receipt or a Purchase Invoice. Leaving those documents in ERPNext lets the receiving desk and accounts payable keep working from the same order. Moving who approves a request does not require moving how finance records the invoice. ERPNext purchase order guide
In the proposed split, the approval app freezes the supplier, currency, lines and prices as a numbered revision. If the buyer changes twelve cartons to twenty after approval, that is another decision. The connector sends the approved revision using an integration account with the necessary ERPNext permissions. Frappe exposes document creation and retrieval through its REST API. Your team must decide whether the integration creates a draft for a buyer to submit or also has authority to submit it. A draft order number alone is insufficient evidence that the supplier can be instructed to ship. Frappe REST API
What happens when the reply is lost?
We tested the handoff in a local SQLite fixture. The receiving table required a unique combination of request ID and revision. It stored request REQ-41, revision 2, for twelve cartons and committed before our test deliberately dropped the reply. A retry using the same pair returned the existing PO-DEMO-1 and its quantity of twelve. The table still held one order.
That result belongs to the fixture. ERPNext’s ordinary create endpoint does not acquire this behavior from the test. For a live integration, implement the uniqueness check at the receiving end and make it atomic with creating the order. On a repeated key, read the existing order and compare its approved contents. If the same key arrives with a different quantity, stop and send the discrepancy to purchasing. A connector that merely searches first and creates second still leaves room for two concurrent requests.
Open Mercato’s Workflow Studio can put a purchase request in a user task assigned to the approver role, then route approval and rejection down different paths. The implementation team owns the connector, the mapping into ERPNext and the queue for approved requests whose ERP status remains unknown. Staff will need access to that queue whenever one system is available and the other is down. Open Mercato workflow module guide
Before moving a real approval, run the lost-reply exercise in staging with two buyers clicking Retry at the same time. Have receiving find the order and finance find the corresponding request. If either team needs the integration logs to explain why it sees two orders or none, keep the current approval route for another cycle. What to keep when replacing part of ERPNext