diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 460a2d9890b..fa6473e4194 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -937,6 +937,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal taxtotal += tax.amount; taxdetail[tax.id] = tax.amount; }); + totalNoTax = round_pr(totalNoTax, this.pos.currency.rounding); return { "priceWithTax": totalTax, @@ -1123,9 +1124,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal }), 0), this.pos.currency.rounding); }, getTotalTaxIncluded: function() { - return round_pr((this.get('orderLines')).reduce((function(sum, orderLine) { - return sum + orderLine.get_price_with_tax(); - }), 0), this.pos.currency.rounding); + return this.getTotalTaxExcluded() + this.getTax(); }, getDiscountTotal: function() { return round_pr((this.get('orderLines')).reduce((function(sum, orderLine) {