Skip to content

Use integer cents in AMAP / Tombola #295

@Petitoto

Description

@Petitoto

Subject of the issue

In AMAP, we should use integers for money balance in AMAP or Tombola. We could avoid rounding errors.

Your environment

  • Version of Hyperion: latest main
  • Operating system: debian

Steps to reproduce

Create a balance in AMAP. Add money, create an order, and delete the order. Repet the operation if the issue does not occur.

Expected behaviour

We get the exact same money we added when creating the balance.

Actual behaviour

Some roundings errors can happen, which can lead to losing 0.000000...1€

Metadata

Metadata

Assignees

No one assigned

    Labels

    amapbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions