fix: default payment terms template selected while duplicating

(cherry picked from commit 18127603fe)
This commit is contained in:
Ejaaz Khan
2025-02-04 23:39:29 +05:30
committed by Mergify
parent d14acb4f58
commit 82cfafb610

View File

@@ -311,7 +311,9 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
account: this.frm.doc.credit_to,
price_list: this.frm.doc.buying_price_list,
fetch_payment_terms_template: cint(
(this.frm.doc.is_return == 0) & !this.frm.doc.ignore_default_payment_terms_template
(this.frm.doc.is_return == 0) &
!this.frm.doc.ignore_default_payment_terms_template &
(this.frm.doc.__run_link_triggers !== false)
),
},
function () {