From deaee7c08b9c2f31006729a097fc11d866cd45a1 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 22 Sep 2016 14:02:53 +0530 Subject: [PATCH] [Fix] Additional Discount Amount can't be refresh automatically #6199 --- erpnext/public/js/controllers/transaction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 2b73cf4a05..92161e1bab 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -678,6 +678,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ me._set_values_for_item_list(r.message); if(item) me.set_gross_profit(item); if(calculate_taxes_and_totals) me.calculate_taxes_and_totals(); + if(me.frm.doc.apply_discount_on) me.frm.trigger("apply_discount_on") } } });