Openbravo Issue Tracking System - POS2
View Issue Details
0057527POS2POSpublic2024-12-20 19:312024-12-20 19:32
Daria_Sh 
Retail 
normalminoralways
newopen 
5
 
 
No
0057527: The generated OTF Coupon is recorded with 'Infinite' uses, despite being configured as 'N Uses'
When 'Percentage' is selected as the amount rule, the 'Number of Uses' is set to 'N Uses' and 'Breakable' flag is enabled, the generated OTF Coupon is recorded in the back office with 'Infinite' number of uses

In the Backoffice:
1. Go to 'Discounts and Promotions' window
2. Create a new discount with 'Variable Amount Coupons' promotion type
3. Fulfill the required fields
4. Tick 'Uses coupon codes' and 'Is OTF Coupon' flags
5. Activate the Promotion/Discount by clicking 'Activate the selected records'
6. Go to 'OTF Coupons Generation Rules' window
7. Create new Rule → Fulfill the following fields:
- Applicant, Search Key, Description and Starting Date
- Issuance Time: At Paid Time
- Promotion/Discount: the one created above
- Amount Rule: Percentage
- Discount %
- Number of Uses: N Uses
- Number of Uses Limit
- Active: ✔
- Breakable
8. Proceed to 'Print' tab → Fulfill the required fields
9. Launch the HW manager
1. Login to POS (livebuilds:vallblanca/openbravo)
2. Add product to the Order
3. Complete the Order (Click 'Pay', select 'Cash' and click 'Done')
4. Log in to Backoffice
5. Go to 'Discount Coupons' window
6. Verify the generated Coupon

Actual Result: The generated OTF Coupon is recorded with 'Infinite' uses, while being configured as 'N Uses'
A possible solution could be to implement logic that hides the 'Number of Uses' field based on whether the coupon is marked as breakable or not
No tags attached.
png Screenshot_72.png (86,380) 2024-12-20 19:31
https://issues.openbravo.com/file_download.php?file_id=20672&type=bug
png

png Screenshot_71.png (70,567) 2024-12-20 19:32
https://issues.openbravo.com/file_download.php?file_id=20673&type=bug
png
Issue History
2024-12-20 19:31Daria_ShNew Issue
2024-12-20 19:31Daria_ShAssigned To => Retail
2024-12-20 19:31Daria_ShFile Added: Screenshot_72.png
2024-12-20 19:31Daria_ShTriggers an Emergency Pack => No
2024-12-20 19:32Daria_ShFile Added: Screenshot_71.png
2024-12-20 19:32Daria_ShProposed Solution updated

There are no notes attached to this issue.