Skip to main content

system.kanoa.lot.addLotState(lotStateInfo, userId)

Add a lot state. All lotStateInfo keys are required unless otherwise stated


Parameters

lotStateInfo Dictionary

- enabledBooleanNot required
- lotStateColorStringi.e '#FF0000 or ' kcRed 60'. Not required
- lotStateNameString

userId Integer:Id of the user executing the function


Returns

lotStateId Integer
message String None if success


Example

>lotStateInfo = {'lotStateName': 'QA Hold', 'enabled': True, 'lotStateColor': '#FF0000'}
>userId = 5
>lotStateId,msg = system.kanoa.lot.addLotState(lotStateInfo, userId)
>print(lotId)