system.kanoa.lot.updateLotOperation
Description
Updates an existing lot operation.Syntax
updateLotOperation(lotOperationInfo, userId)- lotOperationId (int)
- lotOperationName (string)
- lotOperationColor (string)
- allowInputLots (bool)
- allowOutputLots (bool)
- enabled (bool)
- userId (int)
- Number of records modified (int)
- message (string): None if success
Code Examples
# Example usage
>lotOperationInfo = {'lotOperationId': 1, lotOperationName': 'Scrap', 'lotOperationColor': '#0000FF', allowInputLots': True, 'allowOutputLots': False, enabled': True}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotOperation(lotOperationInfo, userId)
>print(retVal)