-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Don't show credit owed when = 0 in order confirmation #11668
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.
Very good, thank you. I added a little simplification to keep the code easier to read.
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.
Go team!
Hey @drummer83, Thanks for this improvement, and for documenting the issue nicely 💪 Following your proposed testing steps: i) If the order has a balance due, this should be indicated in red (as before): ii) If the order has a credit owed, this should be indicated in black (as before): iii) If the order has neither, this should not be indicated at all (this is new). Awesome - good to go, merging 🎉 PS: It should be fairly straightforward to add some some assertions to check for these and the changes introduced on #11114, within our test suite, I'll look for the relevant file and do so. |
Related to the changes from PRs openfoodfoundation#11668 and openfoodfoundation#11114.
What? Why?
If an order is paid with the exact amount, then there is no credit owed and no balance due. In this case it is not required to show the credit owed = 0.
What should we test?
Before:
After:
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates