Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054408Retail ModulesLoyalty Management for Retailpublic2024-01-22 09:352024-02-12 17:33
inaki_luque 
inaki_luque 
normalminorhave not tried
closedfixed 
5
 
 
No
0054408: Being able to automatically downgrade a given membership category (VIP>Prenatal) after a defined period of time
- if after a given period of time the customer do not express a desire to renew a category, It must be downgraded from its category.
- Have a ReactPOS environment with Loyalty modules installed (org.openbravo.loyalty.programs and org.openbravo.retail.loyalty.programs) and a configured loyalty program.

- Go to BO, tab "Loyalty Program", subtab “Category”, sub-subtab “Category Rules”.



- Create a new rule in “Type of Category Rule” named “Category Downgrade Rule On Validity Period”.

- Check up DB for Customer with loyalty program validity date expired yesterday for this category using a background process

- Downgrade said customer loyalty program
No tags attached.
Issue History
2024-01-22 09:35inaki_luqueNew Issue
2024-01-22 09:35inaki_luqueAssigned To => inaki_luque
2024-01-22 09:35inaki_luqueTriggers an Emergency Pack => No
2024-01-24 11:20inaki_luqueStatusnew => scheduled
2024-01-26 13:15hgbotNote Added: 0159824
2024-02-12 17:33hgbotResolutionopen => fixed
2024-02-12 17:33hgbotStatusscheduled => closed
2024-02-12 17:33hgbotNote Added: 0160643
2024-02-12 17:33hgbotNote Added: 0160644
2024-02-12 17:33hgbotNote Added: 0160645
2024-02-12 17:33hgbotNote Added: 0160646

Notes
(0159824)
hgbot   
2024-01-26 13:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs/-/merge_requests/15 [^]
(0160643)
hgbot   
2024-02-12 17:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs [^]
Changeset: 3b3b74174296b375846d3ce691101813596d45d4
Author: Iñaki <inaki.luque@openbravo.com>
Date: 12-02-2024 15:14:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs/-/commit/3b3b74174296b375846d3ce691101813596d45d4 [^]

Fixed FR-54408: Being able to automatically downgrade a given membership category after a defined period of time

---
A src/org/openbravo/loyalty/programs/eventhandler/CategoryRuleEventHandler.java
A src/org/openbravo/loyalty/programs/process/CategoryDowngradeRuleOnValidityPeriodBackground.java
M src-db/database/model/tables/OBLP_CATEGORY_RULE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/OBLP_RULE.xml
---
(0160644)
hgbot   
2024-02-12 17:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs [^]
Changeset: 08e9532f1bf919275130530037873b90b9b01ec8
Author: Jorge Wederago <jorge.wederago@openbravo.com>
Date: 12-02-2024 15:14:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs/-/commit/08e9532f1bf919275130530037873b90b9b01ec8 [^]

Fixed FR-54408: Being able to automatically downgrade a given membership category after a defined period of time
*Code review applied
*Improvements in the feedback for the user
*Improvements in performance

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/loyalty/programs/process/CategoryDowngradeRuleOnValidityPeriodBackground.java
---
(0160645)
hgbot   
2024-02-12 17:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs [^]
Changeset: c78881b493851a16097c7645f57af680fba44cca
Author: Aaron Calero <aaron.calero@openbravo.com>
Date: 12-02-2024 17:33:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs/-/commit/c78881b493851a16097c7645f57af680fba44cca [^]

Fixed FR-54408: Being able to automatically downgrade a given membership category after a defined period of time. Merge branch 'fr/54408'

---
A src/org/openbravo/loyalty/programs/eventhandler/CategoryRuleEventHandler.java
A src/org/openbravo/loyalty/programs/process/CategoryDowngradeRuleOnValidityPeriodBackground.java
M src-db/database/model/tables/OBLP_CATEGORY_RULE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/OBLP_RULE.xml
---
(0160646)
hgbot   
2024-02-12 17:33   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs/-/merge_requests/15 [^]