From a91c95f0febc5fefd0c5dd6e478ce0e2c3ac4b5e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 23 Aug 2013 13:00:47 +0530 Subject: [PATCH] [fix] [minor] recalculate on removing row --- public/js/transaction.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/transaction.js b/public/js/transaction.js index 9bc9f3379e..1d06a9f487 100644 --- a/public/js/transaction.js +++ b/public/js/transaction.js @@ -32,7 +32,11 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ } if(this.other_fname) { - this[this.fname + "_remove"] = this[this.other_fname + "_remove"] = this.calculate_taxes_and_totals; + this[this.other_fname + "_remove"] = this.calculate_taxes_and_totals; + } + + if(this.fname) { + this[this.fname + "_remove"] = this.calculate_taxes_and_totals; } },