Fix to other charges total

This commit is contained in:
Anand Doshi 2012-01-20 14:32:01 +05:30
parent 10393b39d3
commit 4c92390972

View File

@ -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).toFixed(2);
doc.other_charges_total = flt(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);