Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048125Retail ModulesWeb POSpublic2021-11-22 15:562021-12-02 18:59
jetxarri 
marvintm 
highminoralways
closedfixed 
5
 
RR22Q1 
marvintm
No
0048125: Create the logic define when a discount can apply or not a promotion regarding the promotion already applied logic
Currently, we can manage the application of discount with :
 - The priorities : this promotion is applied before another promotion
 - The checkbox “apply next discount” : this promotion will be the last promotion applied on the line or not

What it is not possible to manage is compatibility logic between discounts:
-p0 is applied

-p1 could be applied but is not compatible with p0 (so it is not applied)

-p2 is applied and it is compatible with all discounts


-Define 2 generic discounts that they are always applied <-- P0
-Define priority <-- P1


We are not able to say to Web POS not to apply P1 if P0 is applied
No tags attached.
Issue History
2021-11-22 15:56jetxarriNew Issue
2021-11-22 15:56jetxarriAssigned To => Retail
2021-11-22 15:56jetxarriTriggers an Emergency Pack => No
2021-11-22 20:04hgbotNote Added: 0133264
2021-11-22 20:04hgbotNote Added: 0133265
2021-11-22 20:04hgbotNote Added: 0133266
2021-11-22 20:04hgbotNote Added: 0133267
2021-12-02 07:06hgbotNote Added: 0133447
2021-12-02 07:08hgbotNote Added: 0133448
2021-12-02 07:09hgbotNote Added: 0133449
2021-12-02 07:11hgbotNote Added: 0133450
2021-12-02 07:12marvintmStatusnew => scheduled
2021-12-02 07:12marvintmAssigned ToRetail => marvintm
2021-12-02 07:12marvintmTypedefect => feature request
2021-12-02 07:14marvintmNote Added: 0133451
2021-12-02 07:14marvintmStatusscheduled => resolved
2021-12-02 07:14marvintmFixed in Version => RR22Q1
2021-12-02 07:14marvintmResolutionopen => fixed
2021-12-02 07:15marvintmReview Assigned To => marvintm
2021-12-02 07:15marvintmStatusresolved => closed
2021-12-02 07:53hgbotNote Added: 0133454
2021-12-02 18:59marvintmNote Added: 0133495

Notes
(0133264)
hgbot   
2021-11-22 20:04   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/462 [^]
(0133265)
hgbot   
2021-11-22 20:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/633 [^]
(0133266)
hgbot   
2021-11-22 20:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/43 [^]
(0133267)
hgbot   
2021-11-22 20:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/merge_requests/12 [^]
(0133447)
hgbot   
2021-12-02 07:06   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/462 [^]
(0133448)
hgbot   
2021-12-02 07:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/633 [^]
(0133449)
hgbot   
2021-12-02 07:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/43 [^]
(0133450)
hgbot   
2021-12-02 07:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/merge_requests/12 [^]
(0133451)
marvintm   
2021-12-02 07:14   
This feature was implemented by the following MRs:

https://gitlab.com/openbravo/product/openbravo/-/merge_requests/462 [^]
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/633 [^]
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/43 [^]
https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/merge_requests/12 [^]
(0133454)
hgbot   
2021-12-02 07:53   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: afaa6d3430e8e257d50bbc79dbc19870683c039b
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 2021-12-02T07:53:02+01:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/afaa6d3430e8e257d50bbc79dbc19870683c039b [^]

Related to ISSUE-48125. Fixed eslint problem

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/discount-rules.js
---
(0133495)
marvintm   
2021-12-02 18:59   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^] [^]
Changeset: 98b7ee7e983e98988ea9784e5e96ebc80250d08a
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 2021-12-02T11:13:54+01:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/98b7ee7e983e98988ea9784e5e96ebc80250d08a [^] [^]

Related to ISSUE-48028: Fixed license information of tests

---
M src-test/org/openbravo/retail/discounts/test/base/model/Incompatibility.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountPriceAdjusmentWithIncompatibilityTest.java
---