Hi,
I am trying to do a stock transfer with GST from one gstin to another i.e. internal sale purchase. Which is working fine but not working with below settings.
Inside Buying Settings → Is Purchase Order Required for Purchase Invoice & Receipt Creation? Yes.
Steps to replicate
Do a complete sales cycle i.e. sales order-> delivery note-> sales invoice
Create internal purchase order with reference to sales order and submit it also.
Now I am not able to create a purchase receipt.
There are two errors:
If I create a purchase receipt from purchase order and save it; It gives me error- “Internal Sale or Delivery Reference missing.Please create purchase from internal sale or delivery document itself”
If I create purchase receipt from delivery and save it; It gives me error- “Purchase Order number required for Item SKU001”
So I am not able to save my purchase receipt from either of the flows.
Yeah this is that classic ERPNext circular dependency mess lol, you forced PO required, but internal transfer flow doesn’t fully respect it. System expects PR from Delivery or Internal Sale, but also blocks you because PO is mandatory, so you get stuck in a loop. Either disable “PO required” for this flow or stick to one path only, don’t mix Sales Order based internal transfer with manual PO. Also make sure your inter company setup is clean, missing linkage between SO and PO can trigger exactly that “reference missing” error.