Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058068Retail ModulesDiscounts Combopublic2025-02-25 12:542025-03-29 08:10
ferran_nicasi 
Bimla_vm 
highmajoralways
closedduplicate 
5
main 
 
open
Gold
No
0058068: Combo min/max amounts of items per family are not used properly
When defining the family of a combo, you can configure how many items are needed for each family for it to be valid.

The Combo Wizard only takes into account the minimum, not the maximum nor the inbetween values. So only the minimum amount of items can be added per family in order to create the Combo.
The family of a combo can have between the required minimum, and the maximum allowed.

As defined in the wiki:
Quantity: Minimum number of items required to complete the family. Note this number can be obtained by summing units of the different products in the family.
Max quantity: Maximum number of items that can be used to complete the family. This value can not be less than the Quantity field value. If not value is defined then it will be ignored.

The combo has the Family1 to be configured as follows:

Quantity 2
Max quantity 3

But it only accepts the family as valid if the minimum amount of products is added, once it surpasses that value it stops being ok.

In our example we added 3 units for a family that requires minimum 2, but allows 2 to 3.

Check attached image.

The problem is that apply button is disabled when it shouldn't
The quantities in between the minimum allowed and the maximum, both included, should result in a valid family when creating the combo through the Wizard in WebPOS

Check the logic of apply button to take into account also max-amount
No tags attached.
png FamilyItems.png (65,654) 2025-02-25 12:54
https://issues.openbravo.com/file_download.php?file_id=20958&type=bug
png
Issue History
2025-02-25 12:54ferran_nicasiNew Issue
2025-02-25 12:54ferran_nicasiAssigned To => Retail
2025-02-25 12:54ferran_nicasiFile Added: FamilyItems.png
2025-02-25 12:54ferran_nicasiOBNetwork customer => Gold
2025-02-25 12:54ferran_nicasiTriggers an Emergency Pack => No
2025-03-14 10:51guilleaerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29366#r29366
2025-03-14 10:51guilleaerProposed Solution updated
2025-03-14 10:51guilleaerAssigned ToRetail => guilleaer
2025-03-14 10:51guilleaerStatusnew => acknowledged
2025-03-19 10:29Bimla_vmAssigned Toguilleaer => Bimla_vm
2025-03-19 10:29Bimla_vmStatusacknowledged => scheduled
2025-03-20 06:09hgbotMerge Request Status => open
2025-03-20 06:09hgbotNote Added: 0177006
2025-03-29 08:10AugustoMauchNote Added: 0177703
2025-03-29 08:10AugustoMauchStatusscheduled => closed
2025-03-29 08:10AugustoMauchResolutionopen => duplicate

Notes
(0177006)
hgbot   
2025-03-20 06:09   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/merge_requests/76 [^]
(0177703)
AugustoMauch   
2025-03-29 08:10   
Exported to Jira: https://openbravo.atlassian.net/browse/RM-21497 [^]