How to Resolve "Cannot Delete Purchase Receipt Linked to GL Entry" in ERPNext?

Here is the English translation of your text, using the correct ERPNext terminology:

“I am using ERPNext. I created and submitted a new Purchase Receipt, but when I try to delete it, I am unable to. The system gives the following prompt: ‘Cannot delete or cancel because Purchase Receipt MAT-PRE-2026-00001 is linked to General Ledger Entry ACC-GLE-2026-00003.’ How can I delete this?”

These kinds of error is prevalent because of interconnectedness and dependency. If you read the error message carefully what its trying to say is:

  1. Associated with Purchase Receipt has dependency to GL Entry `ACC-GLE-2026-00003`
  2. To delete Purchase Receipt you need to delete the GL Entry first and then attempt to delete Purchase Reciept

How do I delete an accounting entry? When I open this voucher, there’s no delete button in the upper right corner.

You will need to enable this setting in Accounts Settings to be able to delete the cancelled Purchase Receipt.

1 Like