mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
fix: added flag for dont_fetch_price_list_rate in transaction
This commit is contained in:
@@ -1132,6 +1132,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
this.calculate_net_weight();
|
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 &&
|
if (!dont_fetch_price_list_rate &&
|
||||||
frappe.meta.has_field(doc.doctype, "price_list_currency")) {
|
frappe.meta.has_field(doc.doctype, "price_list_currency")) {
|
||||||
this.apply_price_list(item, true);
|
this.apply_price_list(item, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user