system.kanoa.inventory.addModelBomItem(bomInfo, userId)
Adds or updates a BOM item on a model.
Parameters
bomInfo Dictionary
| - childModelId | Integer | Not required, mutually exclusive with partId |
| - enabled | Boolean | Not required |
| - modelBomId | Integer | Not required, pass to update |
| - modelId | Integer | |
| - notes | String | Not required |
| - parentBomId | Integer | Not required |
| - partId | Integer | Not required, mutually exclusive with childModelId |
| - positionCode | String | Not required |
| - positionName | String | Not required |
| - quantity | Float | |
| - uomId | Integer |
userId Integer:Id of the user executing the function
Returns
modelBomId Integer
message String None if success
Example