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

Make taxRate part of item details for all tax items added to the invoice #42

Merged
merged 8 commits into from
Jul 26, 2024

Conversation

vlaskhilkevich
Copy link
Collaborator

@vlaskhilkevich vlaskhilkevich commented Jul 23, 2024

Using Invoice's itemDetails field to preserve for TAX items effective tax rate obtained from vertex as json object in the format (example):
{"taxRate":0.09975}

This field can be used for more information if needed in the future

Copy link
Collaborator

@singh-sukhvir singh-sukhvir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments to check some preconditions.

Copy link
Collaborator

@singh-sukhvir singh-sukhvir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good mostly. Tests need some work. Some tests look redundant as well

@vlaskhilkevich vlaskhilkevich changed the title Use itemDetails to save effective tax rate Make taxRate part of item details for all tax items added to the invoice Jul 25, 2024
@vlaskhilkevich vlaskhilkevich marked this pull request as draft July 25, 2024 19:13
@vlaskhilkevich vlaskhilkevich marked this pull request as ready for review July 25, 2024 21:11
@vlaskhilkevich vlaskhilkevich force-pushed the tax-rate-in-item-details branch from 3ed2e61 to 36a731c Compare July 26, 2024 12:53
Copy link
Collaborator

@singh-sukhvir singh-sukhvir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. We may need to update how we round and few minor comments

Copy link
Collaborator

@singh-sukhvir singh-sukhvir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@vlaskhilkevich vlaskhilkevich merged commit f482962 into master Jul 26, 2024
8 checks passed
@vlaskhilkevich vlaskhilkevich deleted the tax-rate-in-item-details branch July 26, 2024 16:55
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