fix: Ignore default payment term templates when coping payment terms from orders

This commit is contained in:
Deepesh Garg
2021-08-06 23:53:16 +05:30
committed by GangaManoj
parent 072f63b324
commit bcf56e64ba
9 changed files with 1057 additions and 361 deletions

View File

@@ -76,6 +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)
}
}
if (!args || !args.party) return;