Merge pull request #29661 from frappe/mergify/bp/version-13-hotfix/pr-29641

fix: Ignore linked invoices on Journal Entry cancel (backport #29641)
This commit is contained in:
Deepesh Garg
2022-02-06 21:53:12 +05:30
committed by GitHub

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) {