diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2019-07-03 11:32:13 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2019-07-03 13:25:01 +0000 |
| commit | 59c663ae4252d140d83662e63ee4b6562a98e962 (patch) | |
| tree | 8429da847a7f3eb150d9ca9637a8f4c76af6f617 /addons/web_editor/static/src/js/editor/summernote.js | |
| parent | 09b1cd810ada39be36066a06c41b75b11b08f7bf (diff) | |
[FIX] point_of_sale: correct compute fixed tax negative quantity
Have a product with a fixed amount tax.
Make a "return" of that product in the pos (i.e. negative quantity)
Before this commit:
- The amount of the return was `tax_amount + product_amount` instead of `-1 * positive_total_amount`
- The amount differed from what can be observed in sales
This was because the sign of the quantity was applied twice
After this commit,:
- the amounts of positive and negative amounts are symmetrical
- they match the behavior in sale
The logic is very similar to bb72dea98de4dae8f59e397f232a0636411d37ce
OPW 2026278
closes odoo/odoo#34548
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor/summernote.js')
0 files changed, 0 insertions, 0 deletions
