From 33d20a224164cd83f09018addcf02496f22bced2 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Mon, 23 Oct 2017 14:51:28 -0700 Subject: [PATCH] [FIX] point_of_sale: allow negative prices again 5afb5ecd04cf49be6bedb655b187b19a65e1e02d rewrote the tax computation in both account and point_of_sale to fix complex tax computations but it no longer allowed negative prices in the point of sale. opw-778013 --- 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 caaa1d6acbc..edc1114389a 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1463,8 +1463,8 @@ exports.Orderline = Backbone.Model.extend({ }); return { taxes: taxes_vals, - total_excluded: round_pr(total_excluded, currency_rounding_bak), - total_included: round_pr(total_included, currency_rounding_bak) + total_excluded: sign * round_pr(total_excluded, currency_rounding_bak), + total_included: sign * round_pr(total_included, currency_rounding_bak) }; }, get_all_prices: function(){