system.kanoa.lot.addLotOperation
Description
Adds a new lot operation.Syntax
addLotOperation(lotOperationInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotOperationName | string | ||
lotOperationColor | string | ||
allowInputLots | bool | True if this operation can consume input lots | |
allowOutputLots | bool | True if this operation can product output lots | |
enabled | bool |
Code Examples
# Example usage
>lotOperationInfo = {'lotOperationName': 'Scrap', 'lotOperationColor': '#0000FF', allowInputLots': True, 'allowOutputLots': False, enabled': True}
>userId = 5
>lotOperationId, msg = system.kanoa.lot.addLotOperation(lotOperationInfo, userId)
>print(lotOperationId)