frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.1k stars 7.23k forks source link

10% tax calculation error #4813

Closed samsalway closed 7 years ago

samsalway commented 8 years ago

I'm entering a purchase order, and 10% tax on $12.70 is being calculated as $1.28.

image

Browsing with Chrome ERPNext: v6.21.6 Frappe Framework: v6.22.7 Frappe Subscription: v0.0.1 Mandrill Integration: v0.0.1

anandpdoshi commented 8 years ago

@samduff we will need to investigate this. Thanks for reporting it :+1:

nabinhait commented 8 years ago

May be tax rate defined in Item is different from 10 for one or more items. Please check "Show tax-breakup" under tax table for the details.

samsalway commented 8 years ago

image

That does show the problem, the extra 1 cent comes from the accumulation of rounding errors. The item prices are $1.50, 0.78, 1.16, 1.47, 7.79.

jwrober commented 7 years ago

I can't seem to replicate in my v8 dev instance.

umairsy commented 7 years ago

@samduff can you please check and confirm if this issue is still replicating? Suggest you to make precision for the Currency field to 3 for more precise value in the decimal place. You can set precision for all the currency field at once from

Setup > Global Settings

If issue still prevails with 3 decimal places as well, feel free to re-open the issue.