Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040922Retail ModulesWeb POSpublic2019-05-20 18:012019-06-06 18:39
joniturralde93 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
pi 
piRR19Q3 
marvintm
No
0040922: Automatic absolute discounts can set line price to negative amount
If discount is higher than product price, 'price adjustment' discount type can set it's net price to lower than 0.

It's not allowed for discretionary discounts already, but automatic ones still behave like this.
1. Create a new Discount (Price Adjustment) with amount 20 for product 'Adhesive body warmers'.
2. Add it in web POS: Product price 3.60, discount -20, final price -16.40
No tags attached.
related to defect 0041397 closed rqueralta The negative total price should not be allowed in the POS Terminal when manual discounts are applied 
Issue History
2019-05-20 18:01joniturralde93New Issue
2019-05-20 18:01joniturralde93Assigned To => Retail
2019-05-20 18:01joniturralde93Resolution time => 1560117600
2019-05-20 18:01joniturralde93Triggers an Emergency Pack => No
2019-05-27 15:10ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-05-27 15:11ranjith_qualiantech_comStatusnew => scheduled
2019-06-03 08:15hgbotCheckin
2019-06-03 08:15hgbotNote Added: 0112331
2019-06-03 08:15hgbotStatusscheduled => resolved
2019-06-03 08:15hgbotResolutionopen => fixed
2019-06-03 08:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7f973735f2a31473ffbcb49df454d8f5371e8d2c [^]
2019-06-06 18:39marvintmReview Assigned To => marvintm
2019-06-06 18:39marvintmStatusresolved => closed
2019-06-06 18:39marvintmFixed in Version => RR19Q3
2019-07-25 10:54ngarciaRelationship addedrelated to 0041397

Notes
(0112331)
hgbot   
2019-06-03 08:15   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7f973735f2a31473ffbcb49df454d8f5371e8d2c
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 03 11:44:41 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7f973735f2a31473ffbcb49df454d8f5371e8d2c [^]

Fixed issue 40922 : Price Adjustment discount should be maximum of line amount instead of defined discount amount

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---