fix: min_qty and valid_from for the price selection (#20217)

This commit is contained in:
Don-Leopardo
2020-01-09 03:54:43 -03:00
committed by Nabin Hait
parent 229e5398b5
commit ccdf19314d
2 changed files with 8 additions and 3 deletions

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, true);
this.conversion_factor(doc, cdt, cdn, false);
this.apply_pricing_rule(item, true);
},