Openbravo Issue Tracking System - POS2
View Issue Details
0054372POS2POSpublic2024-01-17 16:082024-02-08 12:57
andre_montenegro 
Triage Omni OMS 
immediatemajoralways
newopen 
5
 
 
No
0054372: [24Q1] Buy X pay Y of different product (average) is discounting the highest price
Configuration for Buy X Pay Y of different product applying a 3x2 scheme using the "Apply Average Price" application rule, results in a discount being applied with the highest-priced item distributed among the transaction lines.
Precondition:

- Log in ERP as Group -Admin-The White Valley Group
- Go to Discounts and Promotions window
- Create new record
   - Discount type: Buy X pay Y of different product
   - Name: 3x2 in Lighting (average)
   - Starting date: 01-01-2012
   - Included Product Categories: Only those defined
   - X: 3
   - Y: 2
   - Application Rule: Apply Average Price
- Products Category subtab
   -Product Category: Lighting & Electronics

Steps to reproduce

- Login POS
- Create a new order by adding
   - Product: Compass Qty: 2
   - Product: Battery charger Qty: 1
- Notice discount applied to both lines:
   - Compass discount: -19.85 € NOK
   - Battery charger discount: -12.65 € NOK

Expected result should be a total discount of the average of prices, which would be 27,83 €, instead the discount is the price of the Battery charger: 32,5 € (19,85€ + 12,65€)
No tags attached.
has duplicate defect 0049753 closed Retail [23Q1] Buy X, Pay Y discount applying average price do not apply the correct discount 
Issue History
2024-01-17 16:08andre_montenegroNew Issue
2024-01-17 16:08andre_montenegroAssigned To => Retail
2024-01-17 16:08andre_montenegroRegression level => QA functional test
2024-01-17 16:08andre_montenegroTriggers an Emergency Pack => No
2024-01-17 16:14andre_montenegroSeveritycritical => major
2024-01-19 11:27andre_montenegroReproducibilityhave not tried => always
2024-02-08 12:36aferrazAssigned ToRetail => Triage Omni OMS
2024-02-08 12:45andre_montenegroRelationship addedduplicate of 0049753
2024-02-08 12:47andre_montenegroRelationship replacedhas duplicate 0049753
2024-02-08 12:57andre_montenegroRegression levelQA functional test =>

There are no notes attached to this issue.