Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055189Retail ModulesDiscounts and Promotionspublic2024-04-14 13:572024-06-25 12:42
remibrunet 
SABARINATH P 
highmajoralways
closedfixed 
5
 
 
approved
Gold
No
0055189: 1 use coupons usable twice with parallel tickets
When setting a coupon as 1 time use only, you can apply it on several ticket in parallel ticket and finish them with the reduction
Create a discount coupon in the back office with Number of uses = N uses, and Number of Uses Limit = 1

On POS :
Add a product
Add the coupon code
Create a 2nd ticket (new order function)
Add a product
Add the coupon code
Finish the 2nd ticket
Finish the 1st ticket

Both have had the reduction
During the migration to React some functionality was missed. It is needed to migrate to ReactPOS the functionality found here:
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/blob/master/web/org.openbravo.retail.discounts.coupons/js/hooks/preordersavehook.js?ref_type=heads [^]
No tags attached.
causes defect 0056287 closed sreehari POS2 POS is frozen when adding coupon with other promotion 
Issue History
2024-04-14 13:57remibrunetNew Issue
2024-04-14 13:57remibrunetAssigned To => Retail
2024-04-14 13:57remibrunetOBNetwork customer => No
2024-04-14 13:57remibrunetTriggers an Emergency Pack => No
2024-04-15 17:26remibrunetOBNetwork customerNo => Gold
2024-04-16 13:31jorgewederagoProposed Solution updated
2024-04-26 13:58jorgewederagoStatusnew => acknowledged
2024-04-29 12:45SABARINATH PAssigned ToRetail => SABARINATH P
2024-04-29 12:45SABARINATH PStatusacknowledged => scheduled
2024-04-29 15:06hgbotMerge Request Status => open
2024-04-29 15:06hgbotNote Added: 0163903
2024-06-18 09:54hgbotMerge Request Statusopen => approved
2024-06-18 09:55hgbotResolutionopen => fixed
2024-06-18 09:55hgbotStatusscheduled => closed
2024-06-18 09:55hgbotNote Added: 0166052
2024-06-18 09:55hgbotNote Added: 0166053
2024-06-24 09:36hgbotNote Added: 0166241
2024-06-25 12:42hgbotNote Added: 0166300
2024-06-25 12:42hgbotNote Added: 0166301
2024-08-28 08:17sreehariRelationship addedcauses 0056287

Notes
(0163903)
hgbot   
2024-04-29 15:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/51 [^]
(0166052)
hgbot   
2024-06-18 09:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: ba0182b3ba6fa78257a613484c802193c3190071
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 17-06-2024 19:32:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/ba0182b3ba6fa78257a613484c802193c3190071 [^]

Fixed ISSUE-55189: Validated singleUse coupon in draftTicket.

---
A web-jspack/org.openbravo.retail.discounts.coupons/src/action/CouponStateActionPreparation.js
M src/org/openbravo/retail/discounts/coupons/CouponsComponentProvider.java
M web-jspack/org.openbravo.retail.discounts.coupons/src/ob-init.js
---
(0166053)
hgbot   
2024-06-18 09:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/51 [^]
(0166241)
hgbot   
2024-06-24 09:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/60 [^]
(0166300)
hgbot   
2024-06-25 12:42   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: fd370f5b62b1d3e1b69d7d0cce389a4906ba0c5c
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 25-06-2024 10:43:43
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/fd370f5b62b1d3e1b69d7d0cce389a4906ba0c5c [^]

Related ISSUE-55189: Handled coupon action in offline mode.

---
M web-jspack/org.openbravo.retail.discounts.coupons/src/action/CouponStateActionPreparation.js
---
(0166301)
hgbot   
2024-06-25 12:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/60 [^]