-
Notifications
You must be signed in to change notification settings - Fork 372
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
Properly compute shipping order line total #1592
base: 1.x
Are you sure you want to change the base?
Properly compute shipping order line total #1592
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Appreciate this has been hanging around a bit. I'm not sure the |
Thanks for reviewing. Splitting concerns makes sense, I reverted |
Having reviewed the code these are my thoughts...
|
@alecritson I think this is probably needed, however, do we need to consider any updates to the Orders side of things? |
The
total
column of the order line didn't consider the tax for shipping lines.I added a few assertions and updated
CalculateTax
to fill every amounts.I also simplified
ApplyShipping
to avoid recomputing the same amounts and only fill the breakdown. Please check that it makes sense, I'm out of my comfort zone there.