coreshop / CoreShop

CoreShop - Pimcore enhanced eCommerce
http://www.coreshop.org
Other
277 stars 157 forks source link

Money Fields do not respect money_decimal_factor setting #2670

Closed Martin-Welte closed 3 months ago

Martin-Welte commented 4 months ago
Q A
Bug report? yes
Feature request? no
BC Break report? no - probably
RFC? no

Issue with moneyfield when changing decimal factor.

I am currently expirencing issues with the moneyfield registered by coreshop. When changing the money_decimal_factor in the settings like described here:

Only the store values of the product seem to be respecting the settings in the backend. The Moneyfields get truncated at 2 decimal places, regardless of what is entered. It happens before updating, so it looks like the registered javascript does not respect the change. The values stored in the database then are respecting the setting (10000) in my case. The truncated missing 2 decimal places are just zeroed out - since they never got sent.

Troubleshooting attempts