From 6623ce608f755ebdaae3f4482a020514cb858ce4 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Thu, 12 Dec 2024 12:23:14 +0100 Subject: [PATCH] [FIX] pos_fixed_discount: fix float conversion --- pos_fixed_discount/static/src/js/FixedDiscountButton.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pos_fixed_discount/static/src/js/FixedDiscountButton.js b/pos_fixed_discount/static/src/js/FixedDiscountButton.js index 4b9a6e254b..817e56f7a9 100644 --- a/pos_fixed_discount/static/src/js/FixedDiscountButton.js +++ b/pos_fixed_discount/static/src/js/FixedDiscountButton.js @@ -17,8 +17,7 @@ odoo.define("pos_fixed_discount.FixedDiscountButton", function (require) { startingValue: 0, }); if (confirmed) { - var val = Math.round(parseFloat(payload)); - this.apply_discount(val); + this.apply_discount(parseFloat(payload.replace(",", "."))); } }