[FIX] point_of_sale: wrong variable name

`tax_amount` is not defined here, making it impossible to remove an
order line...
This commit is contained in:
Nicolas Martinelli
2017-11-03 13:16:15 +01:00
parent f85c8843c9
commit 6c996723b2
+1 -1
View File
@@ -1450,7 +1450,7 @@ exports.Orderline = Backbone.Model.extend({
var amount = self._compute_all(tax, base, quantity, false);
if(!tax.price_include || base_gaps.length == 0)
return tax_amount;
return amount;
var new_gap = base_gaps[base_gaps.length - 1] - amount;