Openbravo Issue Tracking System - POS2
View Issue Details
0055783POS2POSpublic2024-06-17 13:502024-07-05 13:44
philippe_mui 
alainperez 
normalminoralways
closedfixed 
5
 
 
No
0055783: RM-9970 [COUPONS] POS: possible to use more than N use per customer when the ticket is first assigned to another customer
N use per customer can be exceeded when another customer is first assigned to the ticket.

Expected result : When N use per customer is reach for a specific customer, it is impossible to finish the sale with the coupon promotion applied to this customer.


https://openbravo.atlassian.net/browse/RM-9970 [^]
Steps to reproduce

In the backoffice, create a promotion price adjustment automatic with coupon with filter Products “Only those defined”, and products 1 and 2 added in the subtab product. The uses of coupon must be checked.

In the “Coupon” configuration, generate a coupon with N Use per customer = 2.

In the POS, assign to customer A add product 1 or 2 and click on the 3 dots options “Coupons”, and when the pop-up opens, click on “Redeem coupons”

Now finalize the sale for the ticket 1 : the coupon promo is applied.

Create a second ticket assign to customer A, and add product 1 or 2 and click on the 3 dots options “Coupons”, and when the pop-up opens, click on “Redeem coupons”

Finalize the sale for the ticket 2 : the coupon promo is applied

Create a third ticket to customer B, add product 1 or 2 and click on the 3 dots options “Coupons”, and when the pop-up opens, click on “Redeem coupons”. Before to finish the sale, assign to customer A to the ticket.

Finalize the sale for the ticket 3: the coupon promo is applied. → KO, the coupon applied a third time to the customer A instead of showing an error message because N=2 uses have already been reached

Go to the Promotion||Coupon||Usage, and see that the N use for customer A is =-1
FASH
has duplicate defect 0055782 closed alainperez RM-9964 [COUPONS] POS : possible to use more than N use the coupon when ticket is in draft 
causes defect 0056298 closed SABARINATH P The sales process is blocked in offline mode if the substitutive invoice is enabled 
Issue History
2024-06-17 13:50philippe_muiNew Issue
2024-06-17 13:50philippe_muiAssigned To => Retail
2024-06-17 13:50philippe_muiTriggers an Emergency Pack => No
2024-06-17 13:51philippe_muiTag Attached: FASH
2024-06-17 14:36marvintmStatusnew => acknowledged
2024-06-17 14:37marvintmStatusacknowledged => scheduled
2024-06-17 14:37marvintmAssigned ToRetail => alainperez
2024-06-19 15:23hgbotNote Added: 0166099
2024-07-05 13:44hgbotResolutionopen => fixed
2024-07-05 13:44hgbotStatusscheduled => closed
2024-07-05 13:44hgbotNote Added: 0166726
2024-07-05 13:44hgbotNote Added: 0166727
2024-07-09 13:40jorgewederagoRelationship addedhas duplicate 0055782
2024-08-30 13:17SABARINATH PRelationship addedcauses 0055657
2024-08-30 13:43SABARINATH PRelationship deletedcauses 0055657
2024-08-30 13:43SABARINATH PRelationship addedcauses 0056298

Notes
(0166099)
hgbot   
2024-06-19 15:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/59 [^]
(0166726)
hgbot   
2024-07-05 13:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: 8b8ced7ae1188683262b3f300cb4655e946082c2
Author: Alain Pérez Balart <alain.perez@openbravo.com>
Date: 05-07-2024 10:24:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/8b8ced7ae1188683262b3f300cb4655e946082c2 [^]

Fixed ISSUE-55783: Validate the coupons when the ticket is completed

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/discounts/coupons/CouponUsed.java
M web-jspack/org.openbravo.retail.discounts.coupons/src/action/CouponStateActionPreparation.js
---
(0166727)
hgbot   
2024-07-05 13:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/59 [^]