Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044239Retail ModulesDiscounts and Promotionspublic2020-05-19 11:542020-06-02 08:20
santi_lozano 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q2RR20Q2 
marvintm
Production - QA Approved
2019-10-30
RR20Q1
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8010727b12224ff5cd51931cdd6ba6b79cd2015a [^]
No
0044239: Override existing promotions overrides all lines
Override existing promotions overrides all discounts on lines of the ticket on Web POS instead of only the selected ones
This happens on 20Q1 and tip, but doesn't happen on 19Q4.4
As explained on the wiki the correct behavior is the previous one:
"Indicate if this discount will override existing promotions. If this field is checked, no more promotions will be applied to affected lines."
1- Add first line with product "Adhesive body warmers"
2- Add second line with product "Alpine poles"
3- Go to menu "Receipt discounts"
4- Select discount disc_5_var_perc
5- Select first line, click "Override existing promotion" and apply
6- Review that the discount has been applied on the first line
7- Go to menu "Receipt discounts"
8- Select discount disc_5_var_perc
9- Select second line, click "Override existing promotion" and apply
10- Review that the discount has been applied on the second line but the discount on the first line has disappeared
There was an issue related to this topic that could be the cause 42117
No tags attached.
blocks defect 0044100 closed ranjith_qualiantech_com Override existing promotions overrides all lines 
Issue History
2020-05-29 17:01marvintmTypedefect => backport
2020-05-29 17:01marvintmTarget Version => RR20Q2
2020-06-02 08:16hgbotCheckin
2020-06-02 08:16hgbotNote Added: 0120517
2020-06-02 08:16hgbotStatusscheduled => resolved
2020-06-02 08:16hgbotResolutionopen => fixed
2020-06-02 08:16hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR20Q2/org.openbravo.retail.posterminal/rev/cfc818141029bdb4552d734579167288df0b637e [^]
2020-06-02 08:16hgbotCheckin
2020-06-02 08:16hgbotNote Added: 0120518
2020-06-02 08:20marvintmReview Assigned To => marvintm
2020-06-02 08:20marvintmStatusresolved => closed
2020-06-02 08:20marvintmFixed in Version => RR20Q2

Notes
(0120517)
hgbot   
2020-06-02 08:16   
Repository: retail/backports/3.0RR20Q2/org.openbravo.retail.posterminal
Changeset: cfc818141029bdb4552d734579167288df0b637e
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 02 11:46:01 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR20Q2/org.openbravo.retail.posterminal/rev/cfc818141029bdb4552d734579167288df0b637e [^]

Fixed issue-44239 : Added validation when applying discount with override option

* When applying discount with Override existing promotions,
  all manualpromotions should be removed for the selected line before applying new promotion
* When opening discount tab, "Override existing promotions" check box should not be checked by default

---
M web/org.openbravo.retail.posterminal/js/discountsengine/pos/pos-discounts.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---
(0120518)
hgbot   
2020-06-02 08:16   
Repository: retail/backports/3.0RR20Q2/pi-mobile
Changeset: 7b181931e03c9b1a72ce5c9fb5bc3c2c56096ced
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 01 05:42:26 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR20Q2/pi-mobile/rev/7b181931e03c9b1a72ce5c9fb5bc3c2c56096ced [^]

Verifies issue 44239 : Added Automated Test I44239_VerifyManualDiscounts

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithManualPromo2Combined.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I44239_VerifyManualDiscounts.java
---