Skip to main content

system.kanoa.event.addLotOperation(lotOperationInfo, userId)

Adds a lot operation


Parameters

lotOperationInfo Dictionary

- allowInputLotsBoolean
- allowOutputLotsBoolean
- enabledBoolean
- lotOperationColorString
- lotOperationNameString

userId Integer


Returns

lotOperationId Integer
message String None if success


Example

lotOperationInfo = {
'lotOperationName': 'Scrap',
'lotOperationColor': '#0000FF',
'allowInputLots': True,
'allowOutputLots': False,
'enabled': True
}
userId = 5
lotOperationId, msg = system.kanoa.lot.addLotOperation(lotOperationInfo, userId)