Using Euro currency, on the quick edit form the user sees a comma as a decimal separator (correct). But if they save a decimal value, it is rounded, because rounding occurs by default, and because the call to commerce_currency_decimal_to_amount strips the decimal part as it doesn't expect commas as a decimal separator.

This patch prepares the currency value and the rounding param accordingly.

Comments

candelas’s picture

i was having this problem and the patch worked for me. thanks MichaelP, i was getting crazy because the prize changes!

rbosscher’s picture

Status: Needs review » Reviewed & tested by the community

Thanks solved for me too

jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

I'm not 100% sure about this patch, I decided to trust you since it's RTBC and I committed it (fdb576c)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kruser’s picture

StatusFileSize
new24.95 KB

I don't think this fixes the problem. In USD, if I click quick edit on a product that's 4,850.00, the editable price field keeps the comma. Upon being saved, it then displays the price as $4.00.