Openbravo Issue Tracking System - POS2
View Issue Details
0054273POS2POSpublic2024-01-09 07:342024-01-11 14:39
ranjith_qualiantech_com 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0054273: OTFCoupons not generated if MinQty is configured for Amount Rule
OTFCoupons is not generated if Min quantity is configured for OTF Coupons Generation rule with Amount Rule "Buy X Get Y" and "Variable Amount Coupons" discount type.
Backoffice
1) Create a discount for "Variable Amount Coupons". (Check "Use Coupon Code" & "Is OTF Coupon"
2) Create OTF Coupons Generation rule with Amount Rule "Buy X Get Y" for above discount
   With XUnits: 2, YUnits: 1, Min Quantity: 4

POS
1) Add 3 products and complete it
2) Coupon is generated but it should not. (Since, it doesn't met the min quantity condition)

** Same case applied for Min Receipt Amount
No tags attached.
related to feature request 0053832 closed ranjith_qualiantech_com Implement Amount rule for Variable Amount Coupons in Coupons OTF Generation Rules 
Issue History
2024-01-09 07:34ranjith_qualiantech_comNew Issue
2024-01-09 07:34ranjith_qualiantech_comAssigned To => ranjith_qualiantech_com
2024-01-09 07:34ranjith_qualiantech_comTriggers an Emergency Pack => No
2024-01-09 07:46ranjith_qualiantech_comRelationship addedrelated to 0053832
2024-01-09 07:46ranjith_qualiantech_comStatusnew => scheduled
2024-01-10 10:08hgbotNote Added: 0159020
2024-01-11 14:39hgbotNote Added: 0159138
2024-01-11 14:39hgbotResolutionopen => fixed
2024-01-11 14:39hgbotStatusscheduled => closed
2024-01-11 14:39hgbotNote Added: 0159139

Notes
(0159020)
hgbot   
2024-01-10 10:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/41 [^]
(0159138)
hgbot   
2024-01-11 14:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/41 [^]
(0159139)
hgbot   
2024-01-11 14:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: c66c0e0717d62aa813fe6b6cbabbebd4f8d09057
Author: Ranjith S R <ranjith.rangaraju.ext@openbravo.com>
Date: 10-01-2024 10:28:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/c66c0e0717d62aa813fe6b6cbabbebd4f8d09057 [^]

Fixed ISSUE-54273: Added min qty & amt validation for AmountRule BuyXGetY type

---
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/__test__/CreateCoupons.test.js
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/actions/utils/CreateCoupons.js
---