From 4badeecf36c182cddb82c99a8f1f56ae845245fd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 13 Jan 2012 15:45:58 +0530 Subject: [PATCH] Reverting toFixed issue for grand total --- erpnext/selling/doctype/sales_common/sales_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_common/sales_common.js b/erpnext/selling/doctype/sales_common/sales_common.js index 3c3e891cd0..bd7ca202a1 100644 --- a/erpnext/selling/doctype/sales_common/sales_common.js +++ b/erpnext/selling/doctype/sales_common/sales_common.js @@ -252,7 +252,7 @@ cur_frm.cscript.calc_doc_values = function(doc, cdt, cdn, tname, fname, other_fn //console.log("Other Charges: " + other_charges_total); doc.net_total = net_total_incl > net_total ? flt(net_total_incl) : flt(net_total); doc.other_charges_total = flt(other_charges_total); - doc.grand_total = flt((flt(net_total) + flt(other_charges_total)).toFixed(2)); + doc.grand_total = flt(flt(net_total) + flt(other_charges_total)); doc.rounded_total = Math.round(doc.grand_total); doc.grand_total_export = flt(flt(doc.grand_total) / flt(doc.conversion_rate)); doc.rounded_total_export = Math.round(doc.grand_total_export);