fix: added flag for dont_fetch_price_list_rate in transaction (#25041)

This commit is contained in:
Anupam Kumar 2021-03-31 19:39:45 +05:30 committed by GitHub
parent 27f48739d4
commit 1033cf72f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1167,6 +1167,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
this.calculate_net_weight();
}
// for handling customization not to fetch price list rate
if(frappe.flags.dont_fetch_price_list_rate) {
return
}
if (!dont_fetch_price_list_rate &&
frappe.meta.has_field(doc.doctype, "price_list_currency")) {
this.apply_price_list(item, true);