Skip to content

Commit

Permalink
[FIX] pos_fixed_discount: fix float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
GSLabIt committed Dec 17, 2024
1 parent 3ef5222 commit 6623ce6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pos_fixed_discount/static/src/js/FixedDiscountButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",", ".")));
}
}

Expand Down

0 comments on commit 6623ce6

Please sign in to comment.