Net total calculation fix

This commit is contained in:
Anand Doshi 2012-01-30 14:28:31 +05:30
parent 69cfc5566a
commit 6c95ccb8f5

View File

@ -243,7 +243,8 @@ cur_frm.cscript.calc_doc_values = function(doc, cdt, cdn, tname, fname, other_fn
var net_total_incl = 0
var cl = getchildren(tname, doc.name, fname);
for(var i = 0; i<cl.length; i++){
net_total += flt(cl[i].basic_rate) * flt(cl[i].qty);
//net_total += flt(cl[i].basic_rate) * flt(cl[i].qty);
net_total += flt(cl[i].amount);
net_total_incl += flt(cl[i].export_amount);
}