Before this commit, the `major_amount` was rounded before the conversion to the minor currency unit, leading to an approximation error when multiplying a float. After this commit, the conversion of the `major_ amount` to the minor currency unit is done before the rounding, ensuring no float approximation. closes odoo/odoo#94698 X-original-commit: 4a4e0129c09e2db11c46a90a07704dc37cb4fb20 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>