-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Price tiers calculated on 2 decimals even when prices of 4 decimals are entered #15772
Comments
@dverkade, thank you for your report. |
Hi @AleksLi. Thank you for working on this issue.
|
…n prices of 4 decimals are entered Added extended rounding for Address Item to get more accurate calculation result
Closing in favor of https://github.com/magento/magento2/issues/10532. Entering four decimals price is not a valid use case currently. |
I'm reopening this issue. Unlike @orlangur is mentioning this is a valid use case. First of all, you can enter prices with 4 decimals in the backoffice, and they will actually be saved. Second of all, @magento-engcom-team has confirmed and reproduced this issue. |
@dverkade does not mean issue is valid, just that it is reproduced.
DIsplaying 0.53 is correct behavior. However, it would be even better to have proper validation to allow entering only 2 digits after comma. |
This isisue is still reproducable with 2.3.5 |
✅ Jira issue https://jira.corp.magento.com/browse/AC-1029 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Alfa. Thank you for verifying the issue. |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-1029 |
Seems it fixes Issue magento#15772 on Magento 2.2.2 - Please validate on other versione
Hello to all, please check this Pull Request commit 27cd977 It should fix the issue |
@magento I am working on this. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Bravo, here is your Magento Instance: https://218e98d9961f96cf70ba54e62c5fe351.instances-prod.magento-community.engineering |
Description
Although a lot of currencies use only 2 decimals for displaying a price, products might have to be calculated on smaller prices especially in the B2B space. For instance the product price is just 0.5292 per piece for 5 pieces (tier price). Magento now first round the price per piece to 0,53 and then multiplies that by the number you are buying (500), which makes for a total price of 265,00 instead of 264,40.
Preconditions
Steps to reproduce
Expected result
Actual result
Prices showing in de backoffice. They are rounded to two decimals.
Prices as they are stored in the database.
The text was updated successfully, but these errors were encountered: