commit | 6f7ae6290779181d1ad6db11f716a50f8c94072a | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Fri Feb 04 20:13:20 2022 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Fri Feb 04 20:13:20 2022 +0530 |
tree | 62da70e7a4b8de8837edaa163b43a98a3a40df71 | |
parent | 79ab8e645931803eb5ed844683f9923ab3555ec9 [diff] |
fix: Ignore linked invoices on Journal Entry cancel
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 617b376..3cc28a3 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js
@@ -8,6 +8,7 @@ frappe.ui.form.on("Journal Entry", { setup: function(frm) { frm.add_fetch("bank_account", "account", "account"); + frm.ignore_doctypes_on_cancel_all = ['Sales Invoice', 'Purchase Invoice']; }, refresh: function(frm) {