From 3c89605e572608cd06687e4ac00eb2a7818c41c5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Mar 2015 14:33:22 +0530 Subject: [PATCH] minor fix in taxes and totals --- erpnext/public/js/controllers/taxes_and_totals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/taxes_and_totals.js b/erpnext/public/js/controllers/taxes_and_totals.js index eb22bf33b3f..d39cc1ac688 100644 --- a/erpnext/public/js/controllers/taxes_and_totals.js +++ b/erpnext/public/js/controllers/taxes_and_totals.js @@ -324,7 +324,7 @@ erpnext.taxes_and_totals = erpnext.stock.StockController.extend({ manipulate_grand_total_for_inclusive_tax: function() { var me = this; // if fully inclusive taxes and diff - if (this.frm.doc["taxes"].length) { + if (this.frm.doc["taxes"] && this.frm.doc["taxes"].length) { var all_inclusive = frappe.utils.all(this.frm.doc["taxes"].map(function(d) { return cint(d.included_in_print_rate); }));