Net total calculation fix
This commit is contained in:
parent
69cfc5566a
commit
6c95ccb8f5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user