Openbravo Issue Tracking System - Retail Modules
View Issue Details
0025467Retail ModulesDiscounts and Promotionspublic2014-01-13 12:022015-11-09 09:14
guilleaer 
guilleaer 
normalmajoralways
newopen 
5
 
 
No
0025467: Packs with products in common should work correctly using the button "Add pack" (ERP) or adding them with product browser (POS)
Buttons "Add pack" and "Product browser" should add the correct distribution of lines and the discount mechanism should detect this situation being able to apply different packs if the line distribution is correct (same product quantity as defined in the pack of multiplies)

If button (product browser in web POS) is used to add lines, the value of priority, shouldn't be taken into account.
If button (product browser in web POS) is used to add lines, the value of Apply next Discount, shouldn't be taken into account.

EXAMPLE OF DESIRED BEHAVIOR working with price NOT including taxes:
Pack 1:
Name: Camping pack (present in sample data)
price: 385
products:
 - 2 units of "Down sleeping bag 500"
 - 1 unit of "Expedition tent 4 season 2 person"

Pack 2:
Name: Individual Camping pack
price: 200
products:
 - 1 units of "Down sleeping bag 500"
 - 1 unit of "Expedition tent 4 season 2 person"

FOR POS & ERP
1. Add using button (product browser in web POS) a "Camping Pack"
2. Add using button (product browser in web POS) a "Individual Camping Pack"
The status of the ticket should be:
  2 Down sleeping bag 500
  1 Expedition tent 4 season 2 person
  1 Down sleeping bag 500
  1 Expedition tent 4 season 2 person
4. The net amount of this ticket should be 585 (385 + 200)
5. Add using button (product browser in Web POS) a "Camping pack"
6. The status of the ticket should be
  4 Down sleeping bag 500
  2 Expedition tent 4 season 2 person
  1 Down sleeping bag 500
  1 Expedition tent 4 season 2 person
7. The net amount of this ticket should be 970 ((385 x 2) + 200)
8. Add using button (product browser in Web POS) a "Individual Camping pack"
9. The status of the ticket should be
  4 Down sleeping bag 500
  2 Expedition tent 4 season 2 person
  2 Down sleeping bag 500
  2 Expedition tent 4 season 2 person
10. The net amount of this ticket should be 1170 ((385 x 2) + (200 x 2))
Working with price list NOT including taxes

Pack 1:
Name: Camping pack (present in sample data)
price: 385
products:
 - 2 units of "Down sleeping bag 500"
 - 1 unit of "Expedition tent 4 season 2 person"
priority: 10
Apply next Discount: checked

Pack 2:
Name: Individual Camping pack
price: 200
products:
 - 1 units of "Down sleeping bag 500"
 - 1 unit of "Expedition tent 4 season 2 person"
priority: 20
Apply next Discount: checked

PROBLEM 1: Without defining priorities it doesn't work. It should work, because using button we are indicating which pack should be used.

POS
---
1. using product browser add a "Camping pack"
2. using product browser add a "Individual camping pack"
3. The line distribution is correct -> OK
4. The price is correct -> Net: 585 + Taxes: 122.85 = 707.85 -> OK
5. Add again Camping pack
6. The units are increased correctly in the affected lines
7. The pack is not applied 2 times for the affected lines -> PROBLEM 2

ERP
---
1. Go to sales order
2. Add a "Camping pack" using add Pack button.
3. Add a "Individual Camping pack" using add Pack button.
4. The line distribution is correct -> OK
5. If you book the order in this situation the total amount is not correct -> PROBLEM 3 -> 851.50 total net amount -> Should be 585
6. Skipping the previous step, add again a "camping pack". PROBLEM 4 -> Instead of add units to the lines affected by the same pack, new lines are created.
7. Skipping steps 5 and 6, add again a "Individual camping pack". PROBLEM 5 -> Instead of increase the units of lines affected for the same pack, Units of the other pack are increased.
No tags attached.
related to design defect 0022847RR14Q3 closed malsasua DISCOUNTS: Packs from ERP doesn't work fine if the same products of the pack are defined in different lines in the sale order 
related to defect 0025331RMP30 closed guilleaer If you add more than one pack, the price of the product is not fine. 
Issue History
2014-01-13 12:02guilleaerNew Issue
2014-01-13 12:02guilleaerAssigned To => guilleaer
2014-01-13 12:02guilleaerTriggers an Emergency Pack => No
2014-01-13 12:04guilleaerDescription Updatedbug_revision_view_page.php?rev_id=5336#r5336
2014-01-23 17:33guilleaerTarget VersionRMP31 => RMP32
2014-01-31 09:23VictorVillarRelationship addedrelated to 0022847
2014-02-11 12:24VictorVillarIssue Monitored: networkb
2014-02-11 12:24VictorVillarNote Added: 0064047
2014-02-11 12:28VictorVillarNote Deleted: 0064047
2014-02-11 12:30VictorVillarIssue Monitored: VictorVillar
2014-03-11 16:20jonalegriaesarteResolution time => 1395961200
2014-03-31 16:25jonalegriaesarteTarget VersionRR14Q2 => RR14Q3
2014-05-05 13:35jonalegriaesarteNote Added: 0066815
2014-05-05 13:35jonalegriaesarteTypedefect => design defect
2014-06-26 14:09szapataTarget VersionRR14Q3 => RR14Q4
2014-09-22 16:52mtaalTarget VersionRR14Q4 =>
2015-11-09 09:14VictorVillarRelationship addedrelated to 0025331

Notes
(0066815)
jonalegriaesarte   
2014-05-05 13:35   
Moved to design defect because the issue needs a big refactor of the functionality