fix: Override template only if setting is enabled

This commit is contained in:
Deepesh Garg
2021-08-07 00:12:57 +05:30
parent a59a761f99
commit a27ef14db6
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ erpnext.utils.get_party_details = function(frm, method, args, callback) {
if (args) {
args.posting_date = frm.doc.posting_date || frm.doc.transaction_date;
args.fetch_payment_terms_template = cint(!frm.doc.ignore_default_payment_terms_template)
args.fetch_payment_terms_template = cint(!frm.doc.ignore_default_payment_terms_template);
}
}
if (!args || !args.party) return;