Description
The field applyAmount in promotions (maybe discounts too, haven't tested yet) doesn't take the preferred number format locale settings into account.
To Reproduce
applyAmount field (for example you wanted to edit the description), commerce will save the applyAmount as '5'.Expected behavior
Promotions need to show the number with the preferred formatting locale settings so resaving existing promotions with decimal numbers don't get converted to wrong amounts.
Additional info
Currently the applyAmount input field only accept the period decimal format regardless of the user's preferred language.
That's actually not so according to my tests. If I have set my account preferences so that I need to use commas for decimals. I need to input the promotion _with_ a comma. It then transforms it to a period decimal format, yes.
But for example, save a promotion as '0.5' with the preferences set to use commas, it will get saved as '50'.
I have confirmed this is an issue. Working on a fix now. Will update soon.
I was testing the site's primary language that's why I wasn't able to replicate it. I tested this on user's preferred language and able to replicate the bug now.