Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Fix rounding error in new order email #26

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mcdado
Copy link

@mcdado mcdado commented Dec 1, 2015

The previous values are rounded to 2 decimals in the following method:

  1. Order::getOrders()
  2. Order::getProductsDetail()
  3. Order::setProductPrices()

This is due to backwards compatibility with 1.4, but it can lead to rounding errors in the product lines in the email. Instead, here we are using other values provided by the Core.

See example screenshot, where the total is not aligned with the product total:

Calculation error
Please note how the total in the product line is not the same as the product total below. The minus-minus on the coupon line is another issue, precisely: #25

@mcdado
Copy link
Author

mcdado commented Jan 7, 2016

🆙

@mcdado
Copy link
Author

mcdado commented Sep 22, 2016

Anybody?

@mcdado mcdado changed the title [-] MO: Fix rounding error in new order email Fix rounding error in new order email Sep 22, 2016
The previous values are rounded to 2 decimals in the following method:
1. Order::getOrders()
2. Order::getProductsDetail()
3. Order::setProductPrices()

This is due to backwards compatibility with 1.4, but it can lead to
rounding errors in the product lines in the email.

Instead, here we are using other values provided by the Core.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant