Openbravo Issue Tracking System - POS2
View Issue Details
0049853POS2POSpublic2022-07-20 11:502022-07-22 12:37
Irune_Monreal 
Retail 
normalminoralways
newopen 
5
 
 
No
0049853: [22Q3] The discounts are not correctly applied when multiple instances per line is checked
If you have one type of discount with "multiple instances per line" option unchecked, it will depend from which product you access to the discounts window that will allow you to apply a second discount of this type or not.

If you click in the product that has already this type of discount it doesn't allow you to access the discounts window, showing an error message.

But if you select the other product(the one that does not have this type of discount), you access to the discount menu with no trouble, select all products of the order, and then apply the discount (with multiple instances per line unchecked) this new discount and the others assigned to the product selected to access this window will be applied to all products, and if there was a discount of this type applied to any product the one applied before will be eliminated.

The expected result in this case would be, in the products with this type of discount the firstly applied discount will remain not adding any other discount and in the rest of the products the new discount should be applied with no trouble.
Preconditions:
1. Login in the backend as Openbravo
2. Go to Discounts & Promotions window
3. Select the record 'disc_fixed_5_euro'
4. In the header, check the flag 'Allow multiple instances per line'
5. Select the record 'disc_5_ var_perc'
6. In the header, uncheck the flag 'Allow multiple instances per line' if necessary

Steps:

    
1. Login in POS as Vallblanca user
2. Add a line with a product Avalanche transceiver
3. Click on the product and select discount entry
4. In discount combo, select the record 'disc_fixed_5_euro'.
5. Check 'Apply all lines' and click on Apply button
6. Click again on the same product and select discount entry
7. In discount combo, sleect again the record 'disc_fixed_5_euro'.
8. Check 'Apply all lines' and click on Apply button
9. Add a new line with a product Alpine skiing backpack 27 L
10. Click on this new product and select discount entry.
11. In discount combo, select the record 'disc_5_ var_perc'.
12. Check just the second line of the ticket and click on Apply button

13. Click on the 'Avalanche transceiver' product and select discount entry.
14. In discount combo, select the record 'disc_5_ var_perc'.
15. Using keypad, write value 16 and click on Enter keypad button.
16. Check 'Apply all lines' and click on Apply button.

Not being able to select the second product from the discounts window if it has a discount with "multiple instances per line" option unchecked.
No tags attached.
Issue History
2022-07-20 11:50Irune_MonrealNew Issue
2022-07-20 11:50Irune_MonrealAssigned To => Retail
2022-07-20 11:50Irune_MonrealTriggers an Emergency Pack => No
2022-07-22 12:37Irune_MonrealSummaryThe discounts are not correctly applied when multiple instances per line is checked => [22Q3] The discounts are not correctly applied when multiple instances per line is checked

There are no notes attached to this issue.