fix: Don't fetch price list rate on change of qty (#20363)

This commit is contained in:
Nabin Hait 2020-01-21 13:04:21 +05:30 committed by GitHub
parent a7d1985b5f
commit 50cb49cb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -968,7 +968,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
qty: function(doc, cdt, cdn) {
let item = frappe.get_doc(cdt, cdn);
this.conversion_factor(doc, cdt, cdn, false);
this.conversion_factor(doc, cdt, cdn, true);
this.apply_pricing_rule(item, true);
},