You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for MPPProductBOM.getDefault(MProduct product, String trxName) doesn't find the default if there are multiple BOMs. The code simply returns the first one found that is active and has the same value/search key as the Product. This will be the first bom created unless the BOM search key was changed.
The BOM record has a "IsDefault" column but this is not checked.
Would it not be clearer for the user to use the IsDefault to select the default BOM?
Otherwise, its easy to break things by changing the search key.
Also suggest beforeSave checks to make sure at least one record has the default flag set.
The text was updated successfully, but these errors were encountered:
The code for MPPProductBOM.getDefault(MProduct product, String trxName) doesn't find the default if there are multiple BOMs. The code simply returns the first one found that is active and has the same value/search key as the Product. This will be the first bom created unless the BOM search key was changed.
The BOM record has a "IsDefault" column but this is not checked.
Would it not be clearer for the user to use the IsDefault to select the default BOM?
Otherwise, its easy to break things by changing the search key.
Also suggest beforeSave checks to make sure at least one record has the default flag set.
The text was updated successfully, but these errors were encountered: