From 90972cfbf93236b3de30f35aabc30dc055700f06 Mon Sep 17 00:00:00 2001 From: Rohan Bansal Date: Mon, 11 Mar 2019 14:48:26 +0530 Subject: [PATCH] fix(transaction): Avoid shipping rule charge override by tax template --- erpnext/public/js/controllers/transaction.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 1430383a95..2253e2d13c 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1313,7 +1313,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ }, callback: function(r) { if(!r.exc) { - me.frm.set_value("taxes", r.message); + for (let tax of r.message) { + me.frm.add_child("taxes", tax); + } me.calculate_taxes_and_totals(); } }