From 111a08690076eb55043a0b2e7371f5fe4ae59237 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 2 Oct 2012 18:30:07 +0530 Subject: [PATCH] floating point issue fixed tax calculation --- .../purchase_common/purchase_common.js | 147 +++++++++--------- 1 file changed, 75 insertions(+), 72 deletions(-) diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js index 33c05df546..3c99c613f4 100644 --- a/buying/doctype/purchase_common/purchase_common.js +++ b/buying/doctype/purchase_common/purchase_common.js @@ -469,16 +469,18 @@ cur_frm.cscript.calc_other_charges = function(doc , tname , fname , other_fname) //-------------------------- $td(otc,i+1,0).innerHTML = cl[i].item_code; - var tax = getchildren('Purchase Taxes and Charges', doc.name, other_fname,doc.doctype); var total = net_total; for(var t=0;t