fix: Pricing Rule Discount for Product

This commit is contained in:
Rohit Waghchaure
2019-12-18 17:48:39 +05:30
parent 1202e64403
commit 2ae79b8ac2
3 changed files with 9 additions and 6 deletions

View File

@@ -500,6 +500,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
() => {
var d = locals[cdt][cdn];
me.add_taxes_from_item_tax_template(d.item_tax_rate);
if (d.free_item_data) {
me.apply_product_discount(d.free_item_data);
}
},
() => me.frm.script_manager.trigger("price_list_rate", cdt, cdn),
() => me.toggle_conversion_factor(item),