Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

Use integer cents in AMAP / Tombola

Open Petitoto opened this issue 2 years ago • 0 comments

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€

Petitoto avatar Nov 16 '23 19:11 Petitoto