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

Fix order total rounding errors in output #113

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

gwenwindflower
Copy link
Contributor

@gwenwindflower gwenwindflower commented Apr 8, 2024

There has been an issue I've chased down for a minute where penny off rounding errors show up in the orders data. Because of rounding issues I've changed the math for how order_total is calculated to force correctness. I added tests yesterday that should catch this error but don't. Still need to investigate further but this will fix this longstanding issue regardless for the time being.

It also gets rid of the dependency on pandas and uses Python's built-in csv module for writing the data.

@gwenwindflower gwenwindflower merged commit 468fdc5 into main Apr 8, 2024
8 checks passed
@gwenwindflower gwenwindflower deleted the fix/order-total-rounding-errors branch April 27, 2024 22:49
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

Successfully merging this pull request may close these issues.

1 participant