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

Tax calculation fixes, revamped #2735

Merged
merged 6 commits into from Mar 30, 2020

Conversation

roadster31
Copy link
Contributor

@roadster31 roadster31 commented Mar 27, 2020

This is a subset of #2680

This PR implements the "sum of rounded taxes" method for tax calculations, to prevent total price calculation errors when large quantities are ordered.

The PR also introduces an improved order-invoice order total block, and a PDF invoice improvement.

@roadster31 roadster31 changed the title [WIP] Tax calculation fixes, revamped Tax calculation fixes, revamped Mar 28, 2020
@@ -320,13 +321,21 @@ public function buildModelCriteria()
*/
public function parseResults(LoopResult $loopResult)
{
$lastLegacyOrderId = ConfigQuery::read('last_legacy_order_id', 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term legacy is not really clear maybe last_miscalculated_order_id or last_not_rounded_order_id ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last_old_style_rounding_order_id ?

@lopes-vincent lopes-vincent merged commit d9a7d5f into thelia:master Mar 30, 2020
@roadster31 roadster31 deleted the tax-calculation-fix-revamped branch August 31, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants