-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
There was a problem hiding this 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.
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Show resolved
Hide resolved
3ed2e61
to
36a731c
Compare
There was a problem hiding this 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
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/killbill/billing/plugin/vertex/VertexTaxCalculatorTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/killbill/billing/plugin/vertex/VertexTaxCalculator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
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