From 569d051f0bb7e466bd50067ad187e79042cb66e9 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 15 Jul 2015 10:29:41 +0200 Subject: [PATCH] [FIX] point of sale: tax fixed In backend, the method "_unit_compute" doesn't round the fixed tax amount before adding to "cur_price_unit" in the case "tax.include_base_amount". opw:644421 --- addons/point_of_sale/static/src/js/models.js | 4 ++-- 1 file changed, 2 insertions(+), 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 f3af6d5159b..36d2bee0d15 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -872,7 +872,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal data = {amount:tmp, price_include:true, id: tax.id}; res.push(data); } else if (tax.type === "fixed") { - tmp = round_pr(tax.amount * self.get_quantity(),currency_rounding); + tmp = tax.amount * self.get_quantity(); data = {amount:tmp, price_include:true, id: tax.id}; res.push(data); } else { @@ -884,7 +884,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal data = {amount:tmp, price_include:false, id: tax.id}; res.push(data); } else if (tax.type === "fixed") { - tmp = round_pr(tax.amount * self.get_quantity(), currency_rounding); + tmp = tax.amount * self.get_quantity(); data = {amount:tmp, price_include:false, id: tax.id}; res.push(data); } else {