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

handle Decimal on amount values #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

laf-rge
Copy link
Contributor

@laf-rge laf-rge commented Aug 9, 2024

In the testing on my project the jsonEncoder in newer versions of python calls default for both keys and values. This means that you get an exception if you pass in Decimal as a line amount on newer versions of python with the existing lambda on default.

I think we should also include a test where a bill is created with a decimal line amount and to_json() is called to ensure there is no exception.

@bradywhitby
Copy link

I'd just like to express a desire to have this PR merged into master. Our program works fine on 0.9.8, but fails in 0.9.9+ due to this jsonEncoder issue

@laf-rge
Copy link
Contributor Author

laf-rge commented Oct 7, 2024

Let me know if there is anything else I can do to get this merged.

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.

2 participants