system.kanoa.lot.addLotState(lotStateInfo, userId)
Add a lot state. All lotStateInfo keys are required unless otherwise stated
Parameters
lotStateInfo Dictionary
| - enabled | Boolean | Not required |
| - lotStateColor | String | i.e '#FF0000 or ' kcRed 60'. Not required |
| - lotStateName | String |
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)