Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
Trunk
-
None
-
None
Description
While exploring the manufacturing code I observed on the find screen BOM type is set hardcoded (as shown below). We can improve it by using the entity-option tag to allow all ProductAssocType with parentTypeId equals "PRODUCT_COMPONENT".
<form name="FindBom" type="single" target="FindBom" title=""> <field name="productId"><lookup target-form-name="LookupProduct"/></field> <field name="productIdTo" title="${uiLabelMap.ProductProductIdTo}"><lookup target-form-name="LookupProduct"/></field> <field name="productAssocTypeId" title="${uiLabelMap.ManufacturingBomType}"> <drop-down allow-empty="true"> <option key="MANUF_COMPONENT" description="${uiLabelMap.ManufacturingBillOfMaterials}"/> <option key="ENGINEER_COMPONENT" description="${uiLabelMap.ManufacturingEngineeringBillOfMaterials}"/> </drop-down> </field> <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> <field name="submit" title="${uiLabelMap.CommonFind}"><submit/></field> </form>