From 4ada637b17811ec90dc8312061680fd42e19451d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 1 Aug 2017 16:20:59 +0530 Subject: [PATCH] Update taxes_and_totals.js --- erpnext/public/js/controllers/taxes_and_totals.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/taxes_and_totals.js b/erpnext/public/js/controllers/taxes_and_totals.js index fc1b4f523b..e13927f90b 100644 --- a/erpnext/public/js/controllers/taxes_and_totals.js +++ b/erpnext/public/js/controllers/taxes_and_totals.js @@ -289,7 +289,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({ tax.total = flt(this.frm.doc.net_total + tax.tax_amount_after_discount_amount, precision("total", tax)); } else { - tax.total = flt(this.frm.doc.get("taxes")[row_idx-1].total + tax.tax_amount_after_discount_amount, + tax.total = flt(this.frm.doc["taxes"][row_idx-1].total + tax.tax_amount_after_discount_amount, precision("total", tax)); } }, @@ -649,4 +649,4 @@ erpnext.taxes_and_totals = erpnext.payments.extend({ } this.calculate_outstanding_amount(false); } -}); \ No newline at end of file +});