Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028599Retail ModulesDiscounts and Promotionspublic2015-01-13 18:132016-03-31 11:01
lorenzofidalgo 
Retail 
normalminoralways
acknowledgedopen 
5
main 
 
No
0028599: When several discounts overlap, discounts are not correctly calculated
When several discounts overlap, discounts are not correctly calculated.
For example, if several Buy 3 item, pay 2 item concur, instead of just paying 2, you can even receive money.
Login POS backend as Openbravo/openbravo and choose the "White Valley group admin" role.
Go to discount and promotions window.
Create a new record:
--
Organization: *
Discount/Promotion Type: Buy X pay Y of same product
Name: 3x2 bottle
Starting Date: 01-01-2012
Apply Next Discount/Promotion: Checked
Included Organizations: Only those defined
Included Products: Only those defined
X Units: 3
Y Units: 2
Go to Products tab and create a new record with: Bottle 1 L
Go to Organization tab and create a new record with: Central Mountains Store
--
Save this record and create 3 more recods like this one just changing its name for "3x2 bottle (bis)", "3x2 bottle (tris)" and "3x2 bottle (cua)".

Now go to POS and login in CMS terminal as centralmountains/openbravo.
Select a new product: Bottle 1 L.
Add with "+" two more products until having 3 of them.
You will observe that all 3x2 discounts are applied.
Check the qty to pay is negative and must be 0.00.

This issue happens also with other kind of discounts (in fact, all the promotion types that may be defined Apply Next Discount/Promotion as checked). See attached video.
No tags attached.
png DoubleDiscount.png (246,152) 2015-01-13 18:13
https://issues.openbravo.com/file_download.php?file_id=7676&type=bug
png

png CuaDiscount.png (249,569) 2015-01-13 18:15
https://issues.openbravo.com/file_download.php?file_id=7677&type=bug
png

? issue28599.mp4 (2,734,215) 2016-03-31 10:37
https://issues.openbravo.com/file_download.php?file_id=9222&type=bug
Issue History
2015-01-13 18:13lorenzofidalgoNew Issue
2015-01-13 18:13lorenzofidalgoAssigned To => marvintm
2015-01-13 18:13lorenzofidalgoFile Added: DoubleDiscount.png
2015-01-13 18:13lorenzofidalgoTriggers an Emergency Pack => No
2015-01-13 18:15lorenzofidalgoFile Added: CuaDiscount.png
2015-05-15 17:48marvintmSeveritycritical => major
2016-03-30 17:58jorge-garciaAssigned Tomarvintm => Retail
2016-03-30 17:58jorge-garciaStatusnew => acknowledged
2016-03-31 10:37jorge-garciaFile Added: issue28599.mp4
2016-03-31 10:48jorge-garciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11576#r11576
2016-03-31 11:01jorge-garciaNote Added: 0085350
2016-03-31 11:01jorge-garciaSeveritymajor => minor

Notes
(0085350)
jorge-garcia   
2016-03-31 11:01   
This issue will be set as Minor issue.

Although the result of the ticket is not OK (must be 0.00) this is a wrong configuration problem in the backend.