Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054380Retail ModulesDiscounts and Promotionspublic2024-01-18 08:372024-02-12 16:21
noemieroussel 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
approved
Gold
No
0054380: [PROMO] OTF coupon with CRM : same behavior with Is nominal coupon =Y/N
the checkbox Is Nominal coupon = Y/N has the same behavior when a CRM property is configured. The ticket needs to match to CRM Property condition to work correctly
Steps to reproduce:

1.Create a regular Price adjustment promotion A through the Discount and Promotion window, with %percentage=10, Uses coupon code=Y, Is OTF coupon=Y
 
2.Create an OTF coupon through the "OTF Coupons generation rule" window with a discount percentage = 10 , associated promotion A, CRM property condition email - OBPOS2_Email Contains @openbravo

3. Configure the Nominal coupon checkbox = N

4. POS: do assign a customer that do not matches the property to the ticket, add eligible product, and pay.

5. Ticket: the coupon is not generated : KO, as any customer must have access to the OTF

6. POS: do assign a customer that matches the property to the ticket, add eligible product, and pay : OK, as any customer must have access to the OTF
No tags attached.
related to feature request 0054040 closed ranjith_qualiantech_com POS2 Implement Nominal Coupons for OTF Coupon Rules 
Issue History
2024-01-18 08:37noemierousselNew Issue
2024-01-18 08:37noemierousselAssigned To => Retail
2024-01-18 08:37noemierousselOBNetwork customer => Gold
2024-01-18 08:37noemierousselTriggers an Emergency Pack => No
2024-01-18 08:38ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2024-01-20 12:12ranjith_qualiantech_comStatusnew => scheduled
2024-01-25 11:15hgbotMerge Request Status => open
2024-01-25 11:15hgbotNote Added: 0159755
2024-01-29 05:55ranjith_qualiantech_comRelationship addedrelated to 0054040
2024-02-12 16:19hgbotMerge Request Statusopen => approved
2024-02-12 16:21hgbotResolutionopen => fixed
2024-02-12 16:21hgbotStatusscheduled => closed
2024-02-12 16:21hgbotNote Added: 0160640
2024-02-12 16:21hgbotNote Added: 0160641

Notes
(0159755)
hgbot   
2024-01-25 11:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/42 [^]
(0160640)
hgbot   
2024-02-12 16:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: 5ba3367540819bdec6b647095a20f7f7778647e9
Author: Ranjith S R <ranjith.rangaraju.ext@openbravo.com>
Date: 12-02-2024 15:19:16
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/5ba3367540819bdec6b647095a20f7f7778647e9 [^]

Fixed ISSUE-54380: CRMFilterCondition should not applied for Nominal CouponRule
* CRM Property condition tab in OTF Coupon generation rule window
  should not be displayed if rule isNominalCoupon is unchecked
* CRM Property condition should not be validated if rule isNominalCoupon is unchecked

---
M src-db/database/sourcedata/AD_TAB.xml
M src/org/openbravo/retail/discounts/coupons/otf/master/CouponrulesCRMConditionProperties.java
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/__test__/GetRulesApplyToTicket.test.js
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/actions/utils/GetCouponsThatApplyToTicket.js
---
(0160641)
hgbot   
2024-02-12 16:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/42 [^]