From 10393b39d3aad5c80b3a3a6e6d5a0c3c14f57ccc Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 20 Jan 2012 14:29:40 +0530 Subject: [PATCH] Other Charges total fixed to 2 decimals --- 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 603a7b2114..8767b2d1cb 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 } doc.net_total = inclusive_rate ? flt(net_total_incl) : flt(net_total); - doc.other_charges_total = flt(other_charges_total); + doc.other_charges_total = flt(other_charges_total).toFixed(2); //doc.grand_total = flt(flt(net_total) + flt(other_charges_total)); doc.grand_total = flt((flt(net_total) + flt(other_charges_total)).toFixed(2)); doc.rounded_total = Math.round(doc.grand_total);