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?
–
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-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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.
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?
–
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-forum+un…@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
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-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Great, Thank You!
On Friday, May 17, 2013 9:59:37 AM UTC+2, Anand Doshi wrote:
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.
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?
–
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-forum+un…@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
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-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.