craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
226 stars 170 forks source link

[5.x]: Manual transaction converts number incorrect when the account is set to Dutch #3789

Open MatthiasBrodelet opened 2 days ago

MatthiasBrodelet commented 2 days ago

What happened?

Description

When manually adding a transaction to the order the amount to pay in the input field gets converted wrong. 489,75 euro becomes 48.975,00. The amount next to the input field is correct.

Steps to reproduce

  1. Set account language to dutch
  2. Add new transaction in the CP

Expected behavior

The number should be formatted correctly.

Actual behavior

489,75 euro becomes 48.975,00.

Image

Craft CMS version

5.5.3

Craft Commerce version

5.x

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

linear[bot] commented 2 days ago

PT-2327 [5.x]: Manual transaction converts number incorrect when the account is set to Dutch