Skip to content

Support for currencies with 0 or 3 decimal places #49

@profuel

Description

@profuel

I've noticed that in the module Money (https://github.com/FriendsOfCXML/cxml-php/blob/main/src/CXml/Model/Money.php#L22) you assume that the price comes in cents, meaning 2 decimal places.
For JPY it's actually 0.
For BHD, and some other Asian currencies, it's 3.

Do you plan to add support for these currencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions