Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054402Retail ModulesDiscounts and Promotionspublic2024-01-19 15:282024-02-08 14:10
noemieroussel 
Rajesh_18 
highmajoralways
closedfixed 
5
 
 
No
0054402: [COUPONS] - N uses per customer coupons can be used with an anonymous customer
N uses per customer coupons can be used with an anonymous customer. See video : https://drive.google.com/file/d/1wGuukI_oW1Zx74yYiv3dWaUWqT9wF7rD/view?usp=sharing [^]
Steps:

1. Backoffice : create a promotion type price adjustment with Uses coupon code=Y, and add a coupon with N use per customer = X

2. In the POS, add an eligible product without assigning any customer and scan the coupon -> KO this can be used, but a specific customer must be assign to trigger the promotion

3. In the backoffice, go to "Usage" and see that a coupon has been consumed.
FASH
Issue History
2024-01-19 15:28noemierousselNew Issue
2024-01-19 15:28noemierousselAssigned To => Retail
2024-01-19 15:28noemierousselTriggers an Emergency Pack => No
2024-01-19 15:28noemierousselTag Attached: FASH
2024-02-01 12:36Rajesh_18Assigned ToRetail => Rajesh_18
2024-02-01 12:36Rajesh_18Statusnew => scheduled
2024-02-02 14:24jorgewederagoNote Added: 0160190
2024-02-03 05:18hgbotNote Added: 0160209
2024-02-08 06:17hgbotNote Added: 0160383
2024-02-08 14:09hgbotResolutionopen => fixed
2024-02-08 14:09hgbotStatusscheduled => closed
2024-02-08 14:09hgbotNote Added: 0160442
2024-02-08 14:09hgbotNote Added: 0160443
2024-02-08 14:09hgbotNote Added: 0160444
2024-02-08 14:10hgbotNote Added: 0160445

Notes
(0160190)
jorgewederago   
2024-02-02 14:24   
Due date should be three weeks
(0160209)
hgbot   
2024-02-03 05:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/41 [^]
(0160383)
hgbot   
2024-02-08 06:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/11 [^]
(0160442)
hgbot   
2024-02-08 14:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: c3cc333fa8fdc8acca68f8182b7559a7ed1e7ac7
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 07-02-2024 15:16:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/c3cc333fa8fdc8acca68f8182b7559a7ed1e7ac7 [^]

Fixed ISSUE-54402: Restricted Coupon discount for anonymous customer

---
M src/org/openbravo/retail/discounts/coupons/CouponAvailability.java
M src/org/openbravo/retail/discounts/coupons/DISCPUtils.java
M web-jspack/org.openbravo.retail.discounts.coupons/src/model/ticket/coupons/user-actions/AddCoupon.js
M web-jspack/org.openbravo.retail.discounts.coupons/src/services/scan/handlers/CouponScanEventHandler.js
---
(0160443)
hgbot   
2024-02-08 14:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/41 [^]
(0160444)
hgbot   
2024-02-08 14:09   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api [^]
Changeset: a3d0ad5523680de61142d585b5275649c27ee6a9
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 07-02-2024 15:09:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/commit/a3d0ad5523680de61142d585b5275649c27ee6a9 [^]

Related to ISSUE-54402: Restricted Coupon discount for anonymous customer

---
M src/org/openbravo/retail/discounts/coupons/api/service/ConsumeCoupon.java
---
(0160445)
hgbot   
2024-02-08 14:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/11 [^]