Merge pull request #29641 from deepeshgarg007/jv_cancel_ignore

fix: Ignore linked invoices on Journal Entry cancel
This commit is contained in:
Deepesh Garg 2022-02-06 18:57:13 +05:30 committed by GitHub
commit 3e6fade08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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