When I was first using erpnext I created some purchase invoices without a PO. If i create a new PO, can I link them now? How?
Hi there,
The correct way to do this is to cancel the purchase invoices and regenerate them after the orders have been created.
If you wanted to avoid that, you could update the Purchase Invoice Items in the submitted Purchase Invoice to reference the purchase order using frappe.db.set_value
calls in the System Console, but you’d have to hack around a bit to make sure that all of the data was coherent. There is no user facing way with correct triggers, etc. to update a Purchase Invoice to recognize an order after it has been submitted.
1 Like