Merge branch 'develop' of https://github.com/frappe/erpnext into develop

This commit is contained in:
Nabin Hait
2017-11-21 20:19:13 +05:30
18 changed files with 332 additions and 92 deletions

View File

@@ -654,7 +654,10 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
item.stock_qty = flt(item.qty * item.conversion_factor, precision("stock_qty", item));
refresh_field("stock_qty", item.name, item.parentfield);
this.toggle_conversion_factor(item);
if(!dont_fetch_price_list_rate) this.apply_price_list(item, true);
if (!dont_fetch_price_list_rate &&
frappe.meta.has_field(doc.doctype, "price_list_currency")) {
this.apply_price_list(item, true);
}
}
},