From aab3d9f4b47e9e12f62bd4804e5ae151b756027f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 26 Dec 2014 15:36:06 +0100 Subject: [PATCH] [FIX] point_of_sale: use the same rounding sequence as the backend Conflicts: addons/point_of_sale/static/src/js/models.js --- addons/point_of_sale/static/src/js/models.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index a7507d5629f..dc2557fa62d 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -818,8 +818,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal }, get_base_price: function(){ var rounding = this.pos.currency.rounding; - var price = round_pr(round_pr(this.get_unit_price() * this.get_quantity(),rounding) * (1- this.get_discount()/100.0),rounding); - return price; + return round_pr(this.get_unit_price() * this.get_quantity() * (1 - this.get_discount()/100), rounding); }, get_display_price: function(){ return this.get_base_price();