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

cart: move all calculations to cart behaviour implementation #339

Merged
merged 35 commits into from
Nov 18, 2021

Conversation

tessig
Copy link
Member

@tessig tessig commented Sep 27, 2021

By moving calculation responsibility, we enable different implementation possibilities for calculations like tax before or after discounts, tax on single item or sum and different tax rounding modes instead of having it hard-coded in the flamingo cart.

@carstendietrich carstendietrich changed the title cart: work on reducing calculations cart: move all calculations to cart behaviour implementation Sep 30, 2021
@carstendietrich carstendietrich force-pushed the refactor-cart-calculations branch from 4d7a5a8 to e982866 Compare October 4, 2021 13:39
@carstendietrich carstendietrich marked this pull request as ready for review November 8, 2021 09:56
@carstendietrich carstendietrich marked this pull request as draft November 8, 2021 09:56
@carstendietrich carstendietrich marked this pull request as ready for review November 18, 2021 09:43
@carstendietrich carstendietrich merged commit 386261c into master Nov 18, 2021
@carstendietrich carstendietrich deleted the refactor-cart-calculations branch November 18, 2021 10:23
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