Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054898Retail ModulesDiscounts and Promotionspublic2024-01-25 08:492024-03-11 17:12
noemieroussel 
Rajesh_18 
highmajoralways
closedfixed 
5
 
RR24Q1.1 
No
0054898: [PROMO] Coupons OTF Generation Rules, validity dates can be configured wrongly without error message
When configuring the validity date for an OTF Coupon, it is possible to configure the Valid from/to in Days or Month.
Go to the backoffice and create an OTF coupon with :
-Organization : *
-Applicant : Vallblanca
-Search key : 12345
-Promotion : a promotion with Uses coupon code=Y and Is OTF=Y
-Description : test
-Starting date : today
-Valid from : Days - 5
-Valid to : Days - 3

--> See that you can save with valid to < valid from

Same behavior with Valid from/to in Month.
No tags attached.
blocks defect 0054466 closed Rajesh_18 [PROMO] Coupons OTF Generation Rules, validity dates can be configured wrongly without error message 
Issue History
2024-03-11 07:44marvintmTypedefect => backport
2024-03-11 07:44marvintmTarget Version => RR24Q1.1
2024-03-11 17:00hgbotNote Added: 0161976
2024-03-11 17:12hgbotNote Added: 0161980
2024-03-11 17:12hgbotResolutionopen => fixed
2024-03-11 17:12hgbotStatusscheduled => closed
2024-03-11 17:12hgbotNote Added: 0161981

Notes
(0161976)
hgbot   
2024-03-11 17:00   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/45 [^]
(0161980)
hgbot   
2024-03-11 17:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/45 [^]
(0161981)
hgbot   
2024-03-11 17:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: b6663a647f9b4c4340cab64928defbf5b7b76275
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 11-03-2024 21:18:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/b6663a647f9b4c4340cab64928defbf5b7b76275 [^]

Fixed ISSUE-54898: Added condition to check coupon validity From and To

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/discounts/coupons/otf/event/CouponrulesEventHandler.java
---