Skip to content

[5.x]: Manual transaction input currency localization formatting broken #4109

@MatthiasBrodelet

Description

@MatthiasBrodelet

What happened?

Description

When manually adding a transaction to the order the amount to pay in the input field gets converted wrong.
62,75 euro becomes 6.275,00.
The amount next to the input field is correct.
This is because of a conversion error between english and dutch language number formatting.
My account is configured with the English language but with Dutch Formatting Locale in the account preferences.

Image Image

I have reported this issue 2 times before but it seems to never get fixed.

#3812
#3789

Steps to reproduce

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

Expected behavior

The number should be formatted correctly according to my account preferences.

Actual behavior

62,75 euro becomes 6.275,00.

Craft CMS version

5.8.15

Craft Commerce version

5.4.5.1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions