Openbravo Issue Tracking System - POS2
View Issue Details
0057526POS2POSpublic2024-12-20 17:582024-12-20 17:59
Daria_Sh 
Retail 
normalmajoralways
newopen 
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.
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

There are no notes attached to this issue.