Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Possible rounding issue in the amount value #39

@abfa-odoo

Description

@abfa-odoo

When I am initializing the form using Moyasar.init() I pass the amount in Halala (1.15 SAR to 115 Halala) but when the amount is converted back to SAR it is 1.14.

image

If I use 100 Halal it is converted correctly to 1.00 SAR.

image

I tried with other values, sometimes if there is a decimal like 1.15, 2.25, etc. there is a difference of 0.01. This behavior is not true with all the values, only some of them.

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