Merge pull request #32623 from frappe/mergify/bp/version-14-hotfix/pr-32622

fix: Ignore linked purchase invoice on cancel (backport #32622)
This commit is contained in:
Deepesh Garg
2022-10-18 09:12:48 +05:30
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
super.onload();
// Ignore linked advances
this.frm.ignore_doctypes_on_cancel_all = ['Journal Entry', 'Payment Entry'];
this.frm.ignore_doctypes_on_cancel_all = ['Journal Entry', 'Payment Entry', 'Purchase Invoice'];
if(!this.frm.doc.__islocal) {
// show credit_to in print format

View File

@@ -1415,6 +1415,7 @@ class PurchaseInvoice(BuyingController):
"Stock Ledger Entry",
"Repost Item Valuation",
"Payment Ledger Entry",
"Purchase Invoice",
)
self.update_advance_tax_references(cancel=1)