Net Total

37 views
Skip to first unread message

Sören H. Biere

unread,
May 17, 2013, 3:34:30 AM5/17/13
to erpnext-u...@googlegroups.com
Hi Anand,
 
the net_total i assumed to be exkl. tax but due to
 

var d = getchildren('Sales Taxes and Charges', doc.name, other_fname,doc.doctype);
for(var j = 0; j<d.length; j++){
other_charges_total += flt(d[j].tax_amount);
if(d[j].included_in_print_rate) {
inclusive_rate = 1;
}
}
...
 
doc.net_total = inclusive_rate ? flt(net_total_incl) : flt(net_total);

 

net_total equals grand_total_export only because tax is included. Why has this been done?
 
 
 

 

 

 

 

Anand Doshi

unread,
May 17, 2013, 3:59:37 AM5/17/13
to erpnext-u...@googlegroups.com
Hi Soren,

That was for the purpose of printing the net total. It was a bad design decision. I have already fixed this in the new code by adding a new field called net_total_export, which stores the tax inclusive rate and the net_total field will store the tax exclusive rate in company currency.

Thanks,
Anand.

--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sören H. Biere

unread,
May 17, 2013, 4:06:27 AM5/17/13
to erpnext-u...@googlegroups.com
Great, Thank You!

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages