Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058067Retail ModulesDiscounts Combopublic2025-02-25 12:362025-03-18 09:44
ferran_nicasi 
Bimla_vm 
urgentminoralways
scheduledopen 
5
main 
 
open
Gold
No
0058067: Adding a combo yields error
If the field combo fixed price is not filled properly, when adding a Combo of type Fixed price, you get an error:

Cannot read properties of null (reading scale)

1. In the Discount and Promotions window.
2. Configuring one promotion to be of the type Combo Fixed Price.
3. Add a couple of families, each with 3,4 products each.
3. Leave empty the field Combo Fixed Price, which is not mandatory.
4. On WebPOS, when you add a couple of products to the combo, then finish the process of the wizard, you get the error message and not all products are added.

Don't know the amount calculations performed, but some products might work and interact differently between them, creating the error in different instances.
*It has the same name the discount type and the field but are two separate things.*

The field "Combo Fixed Price" Should be mandatory when the discount type is of type Combo Fixed Price.



Add an event observer to verify that field is filled when combo Fixed Price is selected
No tags attached.
png Screenshot 2025-02-24 170526.png (135,811) 2025-02-25 12:36
https://issues.openbravo.com/file_download.php?file_id=20957&type=bug
png
Issue History
2025-02-25 12:36ferran_nicasiNew Issue
2025-02-25 12:36ferran_nicasiAssigned To => Retail
2025-02-25 12:36ferran_nicasiFile Added: Screenshot 2025-02-24 170526.png
2025-02-25 12:36ferran_nicasiOBNetwork customer => Gold
2025-02-25 12:36ferran_nicasiTriggers an Emergency Pack => No
2025-03-14 10:57guilleaerSeveritymajor => minor
2025-03-14 10:57guilleaerAssigned ToRetail => guilleaer
2025-03-14 10:57guilleaerStatusnew => acknowledged
2025-03-14 10:58guilleaerProposed Solution updated
2025-03-14 10:58guilleaerProposed Solution updated
2025-03-14 12:12Bimla_vmAssigned Toguilleaer => Bimla_vm
2025-03-14 12:12Bimla_vmStatusacknowledged => scheduled
2025-03-18 09:44hgbotMerge Request Status => open
2025-03-18 09:44hgbotNote Added: 0176920

Notes
(0176920)
hgbot   
2025-03-18 09:44   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/merge_requests/75 [^]