[FIX] point_of_sale: allow negative prices again

5afb5ecd04 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
This commit is contained in:
Joren Van Onder
2017-10-23 14:57:17 -07:00
parent 47c0cfc6e7
commit 33d20a2241
+2 -2
View File
@@ -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(){