fix: default payment terms template selected while duplicating
(cherry picked from commit 18127603fe)
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user