Skip to content
Snippets Groups Projects
Commit 6c996723 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] point_of_sale: wrong variable name

`tax_amount` is not defined here, making it impossible to remove an
order line...
parent f85c8843
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment