-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: display tax in regular checkout #2773
Conversation
f125782
to
9ed5192
Compare
1522c71
to
69a20f7
Compare
I am keeping an eye on the tests. Hopefully, they will pass this time. You can start reviewing this @jkachel |
Looking into the CI deployment failure. |
Are they similar? I left a comment about that in other PR #2772 (comment). |
Yeah, this one is also due to the migration inconsistency. We can ignore it. I have tested it thoroughly. |
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.
Code looks good, and functional tests were successful - had one minor issue with the email, and this should be good to go, I think.
<strong style="font-weight: 700;">Tax:</strong> ${{ line.tax_paid }}<br> | ||
<strong style="font-weight: 700;">Total Paid:</strong> ${{ line.total_paid }} |
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.
These need to be quantized - in testing I got a Tax line that was $21.675000
(which is right, but too many decimals).
FWIW - I added a couple of template tags in the mail
app to handle this too; they do work differently than the route you've taken though.
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.
Should be fixed in 426b61e
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.
LGTM 👍
Pre-Flight checklist
What are the relevant tickets?
Fixes #2769
What's this PR do?
How should this be manually tested?
NOTE: I will write tests for the frontend in a followup PR. Also, I was not able to test the Cybersource checkout as my Payments were declined each time. I tested with the discounts then I tested the Receipt by deleting Coupon redemptions.
Tax
listed as per the designs and the values are correct.Screenshots (if appropriate)
Checkout:
Email:
Dashboard Receipt: