fix: Ignore linked invoices on Journal Entry cancel

This commit is contained in:
Deepesh Garg 2022-02-04 20:13:20 +05:30
parent 79ab8e6459
commit 6f7ae62907

View File

@ -8,6 +8,7 @@ frappe.provide("erpnext.journal_entry");
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) {