Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055048Retail ModulesDiscounts and Promotionspublic2024-03-25 17:022024-05-02 08:45
inaki_luque 
inaki_luque 
normaltrivialhave not tried
closedfixed 
5
 
 
No
0055048: Partial usage of coupons
- The coupon should be partially redeemable in the Webpos or BO, when they have an amount.

- It means that it cannot be applied if the coupon is linked to a discount which does not generate an amount.

- The coupon could be reuse until it expires, or the balance amount reaches 0€
N/A
No tags attached.
Issue History
2024-03-25 17:02inaki_luqueNew Issue
2024-03-25 17:02inaki_luqueAssigned To => inaki_luque
2024-03-25 17:02inaki_luqueTriggers an Emergency Pack => No
2024-03-25 17:02inaki_luqueStatusnew => scheduled
2024-05-02 08:43hgbotResolutionopen => fixed
2024-05-02 08:43hgbotStatusscheduled => resolved
2024-05-02 08:43hgbotNote Added: 0163974
2024-05-02 08:43hgbotNote Added: 0163975
2024-05-02 08:43hgbotNote Added: 0163976
2024-05-02 08:43hgbotNote Added: 0163977
2024-05-02 08:43hgbotNote Added: 0163978
2024-05-02 08:45jorgewederagoStatusresolved => closed

Notes
(0163974)
hgbot   
2024-05-02 08:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: 50f31a02f418478dcaac33cd504f25d4b16d15d9
Author: Jorge Wederago <j.wederago@orisha.com>
Date: 02-05-2024 08:32:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/50f31a02f418478dcaac33cd504f25d4b16d15d9 [^]

Fixes ISSUE-55048: Partial usage of coupons

---
A build/classes/org/openbravo/retail/discounts/coupons/modulescript/ModuleScriptBreakableCouponFields.class
A src-db/database/model/tables/OBDISCP_TRANSACTION.xml
A src-test/org/openbravo/retail/discounts/coupons/event/BreakableCouponEventHandlerTest.java
A src-util/modulescript/src/org/openbravo/retail/discounts/coupons/modulescript/ModuleScriptBreakableCouponFields.java
A src/org/openbravo/retail/discounts/coupons/event/BreakableCouponEventHandler.java
A web-test/model/business-logic/discounts-engine/engine/rule/variable-amount-coupons-discount.test.js
M src-db/database/model/tables/OBDISCP_COUPON.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src/org/openbravo/retail/discounts/coupons/CouponAvailability.java
M src/org/openbravo/retail/discounts/coupons/DISCPUtils.java
M src/org/openbravo/retail/discounts/coupons/OrderLoaderHookCoupons.java
M web-test/model/business-object/ticket/TicketCouponUtils.test.js
M web/org.openbravo.retail.discounts.coupons/app/model/business-logic/discounts-engine/engine/rules/variable-amount-coupons-discount.js
M web/org.openbravo.retail.discounts.coupons/app/model/business-object/ticket/TicketCouponUtils.js
R src/org/openbravo/retail/discounts/coupons/event/CouponEventHandler.java
---
(0163975)
hgbot   
2024-05-02 08:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: d56af129f1ce04f7353bfe9e293f2789aa27cc60
Author: Jorge Wederago <j.wederago@orisha.com>
Date: 02-05-2024 08:33:58
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/d56af129f1ce04f7353bfe9e293f2789aa27cc60 [^]

Related to ISSUE-55048: Partial usage of coupons

---
A src-test/org/openbravo/retail/discounts/coupons/otf/event/BreakableCouponRulesEventHandlerTest.java
A src/org/openbravo/retail/discounts/coupons/otf/event/BreakableCouponRulesEventHandler.java
M src-db/database/model/tables/OBCPOTF_COUPONRULES.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src/org/openbravo/retail/discounts/coupons/otf/OrderLoaderHookOTFCoupons.java
M web/org.openbravo.retail.discounts.coupons.otf/js/events/discountCoupons.js
---
(0163976)
hgbot   
2024-05-02 08:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api [^]
Changeset: 4cbe5a24d374a7d825bcb5a263e2c9b93c606c7e
Author: Jorge Wederago <j.wederago@orisha.com>
Date: 02-05-2024 08:36:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/commit/4cbe5a24d374a7d825bcb5a263e2c9b93c606c7e [^]

Related to ISSUE-55048: Add logic to handle Breakable Coupons in the API

---
A src-db/database/sourcedata/AD_MESSAGE.xml
M api/org.openbravo.retail.discounts.coupons.api-consumecoupons.yml
M examples/Retail API Coupon.postman_collection.json
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
M src/org/openbravo/retail/discounts/coupons/api/service/ConsumeCoupon.java
---
(0163977)
hgbot   
2024-05-02 08:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api [^]
Changeset: 5cc4f45d4e2de2b666de4b586a7d1026c0293f76
Author: Jorge Wederago <j.wederago@orisha.com>
Date: 02-05-2024 08:36:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api/-/commit/5cc4f45d4e2de2b666de4b586a7d1026c0293f76 [^]

Related to ISSUE-55048: Partial usage of coupons for OTF Rules API

---
M examples/Openbravo API.postman_collection.json
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0163978)
hgbot   
2024-05-02 08:43   
Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.test.mobile.sampledata [^]
Changeset: 5831ff08dcb25ba27cf8b5ea3614259576b458a2
Author: Jorge Wederago <j.wederago@orisha.com>
Date: 02-05-2024 08:38:07
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.test.mobile.sampledata/-/commit/5831ff08dcb25ba27cf8b5ea3614259576b458a2 [^]

Related to ISSUE-55048: Update sampledata

---
M referencedata/sampledata/The_White_Valley_Group/OBCPOTF_COUPONRULES.xml
M referencedata/sampledata/The_White_Valley_Group/OBDISCP_COUPON.xml
---