-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Exclude line item additional taxes from unit cancel adjustment amount #3072
Exclude line item additional taxes from unit cancel adjustment amount #3072
Conversation
e7ed796
to
df9a7f3
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.
@mdesantis 👍nice fix, thank you! 👏
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.
Thanks @mdesantis!
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.
@mdesantis thanks for the fix. I think it could be useful to split this change into two different commits, one that refactors only and the other that makes the change so it will be easier to understand what/how changed. WDYT?
@kennyadsl good suggestion! I agree |
Fixes solidusio#3068. It takes into account the line item taxes amount during calculation of line item amount on line item cancellation.
Related to solidusio#3068. In order to keep code consistency, I made a refactoring along the same lines of `core/app/models/spree/calculator/returns/default_refund_amount.rb`, which performs a similar calculation.
df9a7f3
to
d822a08
Compare
@kennyadsl commit splitting 👍 |
Description
Fixes #3068. It takes into account the line item taxes amount during calculation of line item amount on line item cancellation.
In order to keep code consistency, I made a refactoring along the same lines of
core/app/models/spree/calculator/returns/default_refund_amount.rb
, which performs a similar calculation.Ref #3068
Checklist: