summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-03-16 15:36:36 +0100
committerJoren Van Onder <jov@odoo.com>2016-03-16 16:06:02 +0100
commite8b965f93c3eeb541aba7b6a435193a9008516ac (patch)
tree66d3b0bf3486018d47d4d22e66b2b0ef2643647d /addons/web/static/src/js/framework/data.js
parentfc32ff2243b6c1993458fb9d2ab74f22074b10a7 (diff)
[FIX] point_of_sale: correctly copy the base_amount sign of fixed tax
All the POS has to do is copy what accounting does. In the case of a fixed tax we should do (from account.tax._compute_amount): return math.copysign(self.amount, base_amount) * quantity where copysign(x, y) returns x with the sign of y. When base_amount is 0 it's positive, not negative. This also correctly handles a base_amount of -0, although it's something that we shouldn't encounter in the POS. opw-672118
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions