Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tax Report Shows Wrong Total #1338

Closed
miqrogroove opened this issue Apr 14, 2014 · 0 comments
Closed

Tax Report Shows Wrong Total #1338

miqrogroove opened this issue Apr 14, 2014 · 0 comments

Comments

@miqrogroove
Copy link

I'm trying out OpenCart v1.5.6.2.

There seems to be a problem with the Taxes report. It is counting fractions of a cent in the total, even though taxes will always be charged and collected in whole cents.

To test, I created two orders that would have $0.11 tax.

The Tax Report shows a total of $0.23. :(

I'm not sure where to begin with the PHP code, but I did notice this in the database:

SELECT order_id, text, value FROM oc_order_total WHERE code='tax'

order_id | text | value
2 | $0.11 | 0.1114
3 | $0.11 | 0.1147

It looks like the text column values are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants