mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
fix: default payment terms template selected while duplicating
(cherry picked from commit 18127603fe)
This commit is contained in:
@@ -343,7 +343,9 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
|
|||||||
account: this.frm.doc.credit_to,
|
account: this.frm.doc.credit_to,
|
||||||
price_list: this.frm.doc.buying_price_list,
|
price_list: this.frm.doc.buying_price_list,
|
||||||
fetch_payment_terms_template: cint(
|
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 () {
|
function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user