I am trying to cancel a Purchase order which was linked with Payment Entry which I have already canceled . However when try to cancel the purchase order it is giving the error that it is linked to GL Entry.
I have checked in the GL entry and it has is_cancelled checked
How can I resolve the issue?
July 31, 2021, 8:26am
Try cancelling the PO after deleting the Cancelled Payment entry.
Hope this helps.
Thanks for the reply. I tried deleting the Payment Entry. However it is giving the same error
Cannot delete or cancel because Payment Entry is linked with GL Entry.
How can we resolve this?
August 2, 2021, 6:00am
What GL Entry is linked with your Payment Entry. Find that and see if you can cancel and delete that Entry before you try cancelling the PO.
There is no option to delete the GL Entry. Infact I will feel very uncomfortable if we have to handle GL Entries directly ourselves.
August 2, 2021, 7:01am
Usually when you cancel a PO, the Payment entry should get unlinked from the PO. And you should be able to either keep the payment entry or cancel it depending on the business situation.
Which version of ERPNext are you on?
This is how it was working before. I recently updated to version 13 and since then it has been a problem. My system is currently on
ERPNext: v13.7.1 (version-13)
Frappe Framework: v13.7.0 (version-13)
August 2, 2021, 7:08am
Maybe Immutable Ledger (or something similar) has changed the game! Maybe it’s a bug.
You just have to wait for somebody more knowledgeable with the latest releases to help you with this.
Thanks JayRam for your support and help. I really appreciate it.
I will file a bug report so that someone can look into the issue.
Enable this in Accounts Settings → Transaction Settings:
Delete Accounting and Stock Ledger Entries on deletion of Transaction
September 8, 2022, 4:01pm
Did you create the Github Issue ? Just encountered this same situation so it appears it isn’t fixed yet ?
@Sambhav_Patni actually you shouldn’t have to enable this. GL Entries with ‘Is Cancelled’ ticked shouldn’t prevent you from Cancelling linked docs
September 8, 2022, 4:50pm
I’ve created a Github Issue for same:
Hope it can be fixed soon
is your problem solved?? am facing the same issue with a stock entry (material issue) and the FIFO reposting valuation is stuck because of this issue !! any help if possible?
thanks a lot