Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036549Retail ModulesWeb POSpublic2017-07-31 12:472017-10-24 15:40
nataliag 
rqueralta 
normalmajoralways
closedfixed 
5
 
RR17Q4 
marvintm
No
0036549: Best Deal case not working if you configured a discount with a price bigger than the original
Using the best deal case module, ff you configure a "discount" of type Price adjustment and you fix the price bigger than the original, then when you add this product to the ticket and you try to pay it, the line is deleted and the total is set to 0.00€
1- Go to discount and promotions in backend and create a new discount:
- Discount type -> Price adjustment
- All the categories -> "All excluding defined" unless Included Products
  which is set as "Only those defined"
- Fixed Unit Price -> 16
- In products tab add "Insect repellent"

2- Verify in "Organization" window that the checkbox "Best Deal case for discount and Promotion" is checked.
3-Go to POS terminal and create a new ticket.
4- Add the "Insect repellent" product. You can see that the "discount" is added and now the price is 16.
5- Press the total to try to pay the ticket and the message "A better discount (0) than original (-1.5) was applied. Ticket has been modified" appears, the line is deleted and the total is set to 0.
No tags attached.
Issue History
2017-07-31 12:47nataliagNew Issue
2017-07-31 12:47nataliagAssigned To => Retail
2017-07-31 12:47nataliagResolution time => 1503266400
2017-07-31 12:47nataliagTriggers an Emergency Pack => No
2017-07-31 14:18PracticsIssue Monitored: Practics
2017-08-02 20:43rqueraltaAssigned ToRetail => rqueralta
2017-08-02 20:44rqueraltaStatusnew => scheduled
2017-08-23 15:08hgbotCheckin
2017-08-23 15:08hgbotNote Added: 0098617
2017-08-23 15:08hgbotStatusscheduled => resolved
2017-08-23 15:08hgbotResolutionopen => fixed
2017-08-23 15:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/90fa4598e49f9c40d0a867dee286f24f270ab7a6 [^]
2017-08-25 11:43marvintmReview Assigned To => marvintm
2017-08-25 11:43marvintmStatusresolved => closed
2017-08-25 11:43marvintmFixed in Version => RR17Q4
2017-10-24 15:40hgbotCheckin
2017-10-24 15:40hgbotNote Added: 0100032

Notes
(0098617)
hgbot   
2017-08-23 15:08   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 90fa4598e49f9c40d0a867dee286f24f270ab7a6
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Tue Aug 22 12:06:48 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/90fa4598e49f9c40d0a867dee286f24f270ab7a6 [^]

Fixed issue 36549: Best Deal case not working if you configured a discount with
a price bigger than the original

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---
(0100032)
hgbot   
2017-10-24 15:40   
Repository: tools/automation/pi-mobile
Changeset: 038db5503e08ed82ea33bb7c4170154b94f045de
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Tue Oct 24 09:28:55 2017 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/038db5503e08ed82ea33bb7c4170154b94f045de [^]

Verifies issue 36549: Best Deal case not working if you configured a discount
with a price bigger than the original

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I36549_VerifyPriceAdjIsNotBiggestThanLinePrice.java
---