Openbravo Issue Tracking System - POS2
View Issue Details
0053845POS2POSpublic2023-11-03 11:342024-04-22 15:28
andre_montenegro 
SABARINATH P 
normalmajoralways
closedfixed 
5
 
 
No
0053845: [23Q4] Coupons marked as Single-Use allows multiple usages
The user can apply the 'Single-Use' coupon discount to two different opened tickets, which is currently OK (notice: OPENED ticket, not PAID yet)

However, the problem arises when the user pays the first opened ticket without any problem, but then, they can also use pay for the second ticket which contains the same coupon.
ERP Config
- Login ERP as user: Openbravo / Pass: openbravo
- Go to "Discounts and Promotions" window
- Edit "2 x 1 - Ski Touring" discount, check "Use Coupon codes" & Save
- Click on "Coupon" Tab for this discount
- Create and save a new record
   - Coupon Code: "2x1"
   - Check "Expires after 1 use"
   - "Active" should be checked

POS steps
- Log in to POS using User: Vallblanca and Password: openbravo.
- Create a ticket with these items:
  - Ski touring bindings
  - Ski touring board Dyn
- Click the three vertical dots button and select "Coupons"
- Choose "Redeem Coupon" and enter "2x1". The coupon should be applied.
- Click "New Order"
- Create another ticket with the same items.
- Go to "Coupons" and apply the "2x1" coupon.The coupon should be applied.
- Click "Back"
- Pay the current ticket, ticket is correctly paid (OK).
- Pay the previous ticket, ticket is correctly paid (NOK)

Both tickets were paid with the same coupon, which is not supposed to happen.
No tags attached.
related to feature request 0053618 closed jorgewederago Port and improve Number of Uses for Coupons 
related to defect 0055280 closed Retail [24Q2] Coupons marked as Single-Use allows multiple usages 
png CouponUsedTwice.png (74,151) 2023-11-03 11:34
https://issues.openbravo.com/file_download.php?file_id=19127&type=bug
png
Issue History
2023-11-03 11:34andre_montenegroNew Issue
2023-11-03 11:34andre_montenegroAssigned To => Retail
2023-11-03 11:34andre_montenegroFile Added: CouponUsedTwice.png
2023-11-03 11:34andre_montenegroTriggers an Emergency Pack => No
2023-11-03 11:36andre_montenegroRelationship addedrelated to 0053618
2023-11-03 12:17andre_montenegroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27081#r27081
2023-11-09 06:21SABARINATH PAssigned ToRetail => SABARINATH P
2023-11-09 06:21SABARINATH PStatusnew => scheduled
2023-11-17 12:40hgbotNote Added: 0157281
2024-01-17 06:23SABARINATH PStatusscheduled => resolved
2024-01-17 06:23SABARINATH PResolutionopen => fixed
2024-01-17 06:23SABARINATH PStatusresolved => closed
2024-01-17 06:49hgbotNote Added: 0159398
2024-04-22 15:28andre_montenegroIssue cloned0055280
2024-04-22 15:28andre_montenegroRelationship addedrelated to 0055280

Notes
(0157281)
hgbot   
2023-11-17 12:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/32 [^]
(0159398)
hgbot   
2024-01-17 06:49   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/32 [^]