Delete or Cancel submit doc linked with GL Entry.

I making a GL Entry using server script, on the submission of my custom doctype. I want to cancel the submitted doc and manage GL Entry as well. As GL Entry is linked with custom doctype, getting error:

Cannot delete or cancel because Fee [EDU-FEE-2024-00001] is linked with GL Entry [ACC-GLE-2024-00001]

frm.ignore_doctypes_on_cancel_all = [
‘GL Entry’
Add this code in your doctype js file on refresh event

1 Like