From 39adc8f85fd47992c9078d1bb4f89cb991025794 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 22 Jan 2018 13:08:05 +0530 Subject: [PATCH] calculate total when items are removed --- erpnext/public/js/controllers/transaction.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 9ee82d2118..d290c92eaf 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -648,6 +648,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ } }).fail(() => this.frm.set_value('shipping_rule', '')); } + else { + me.calculate_taxes_and_totals(); + } }, set_actual_charges_based_on_currency: function() {