Openbravo Issue Tracking System - POS2
View Issue Details
0057526POS2POSpublic2024-12-20 17:582025-01-22 12:54
Daria_Sh 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
No
0057526: Variable OTF Coupon can be created and applied with zero/negative/greater than 100% Discount value
When zero/negative/greater than 100% values are entered as the 'Discount%' in the OTF Rule in the Backoffice, the rule is saved, and the OTF Coupon can still be generated and applied in the POS.

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 %: 0|-5|1000%
- Number of Uses: N Uses
- Number of Uses Limit
- Active: ✔
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. Select 'Print' delivery option
5. Verify the printed Coupon in the HW manager
Actual Result: The Coupon is printed and saved in the BO (Discount Coupon window) with with the 'Amount' matching % of the Order Total per OTF Rule

6. Add product to the Order
7. Scan or redeem Coupon Code
Actual Result: The coupon is applied
The validation should be set for 'Discount%' field preventing to save OTF rule with zero/negative/greater than 100% value
No tags attached.
related to defect 0057525 closed ranjith_qualiantech_com OTF Coupon can be created and applied with a negative or zero 'Number of Uses Limit' value 
png Screenshot_69.png (147,965) 2024-12-20 17:58
https://issues.openbravo.com/file_download.php?file_id=20670&type=bug
png

png Screenshot_70.png (87,001) 2024-12-20 17:59
https://issues.openbravo.com/file_download.php?file_id=20671&type=bug
png
Issue History
2024-12-20 17:58Daria_ShNew Issue
2024-12-20 17:58Daria_ShAssigned To => Retail
2024-12-20 17:58Daria_ShFile Added: Screenshot_69.png
2024-12-20 17:58Daria_ShTriggers an Emergency Pack => No
2024-12-20 17:59Daria_ShFile Added: Screenshot_70.png
2024-12-20 17:59Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=28951#r28951
2025-01-17 12:27ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2025-01-18 07:11ranjith_qualiantech_comStatusnew => scheduled
2025-01-19 23:53ranjith_qualiantech_comNote Added: 0174339
2025-01-22 12:53ranjith_qualiantech_comNote Deleted: 0174339
2025-01-22 12:54ranjith_qualiantech_comNote Added: 0174547
2025-01-22 12:54ranjith_qualiantech_comStatusscheduled => resolved
2025-01-22 12:54ranjith_qualiantech_comResolutionopen => fixed
2025-01-22 12:54ranjith_qualiantech_comStatusresolved => closed
2025-01-22 12:54ranjith_qualiantech_comRelationship addedrelated to 0057525

Notes
(0174547)
ranjith_qualiantech_com   
2025-01-22 12:54   
Added fix as part of the issue https://issues.openbravo.com/view.php?id=57525 [^]