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: Prevent truncating invoice lineItem taxRates #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

armordog
Copy link

@armordog armordog commented Mar 3, 2022

tax_rate can't be stored as an integer because many states allow fractional tax rates

This change makes it match credit_notes.json's tax_rate (which stores correctly as a float)

Description of change

Changed invoice schema to prevent tax_rate from being stored as an integer

Potential Risks

I have no idea what this will do with existing tables

@cmerrick
Copy link

cmerrick commented Mar 3, 2022

Hi @armordog, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@cmerrick
Copy link

cmerrick commented Mar 3, 2022

You did it @armordog!

Thank you for signing the Singer Contribution License Agreement.

@armordog
Copy link
Author

Just a reminder that this is still broken and still reporting incorrect tax rates.

tax_rate can't be stored as an integer because many states allow fractional tax rates

This change makes it match `credit_notes.json` (which stores correctly as a float)
@armordog
Copy link
Author

Aw man I missed this issue's birthday 🎂

@RushiT0122
Copy link

Looking into this.

@RushiT0122
Copy link

This issue is fixed in PR #102.

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.

None yet

3 participants