system.kanoa.lot.addLotState
Description
Adds a new lot state.Syntax
addLotState(lotStateInfo, userId)- lotStateInfo (dict)
- - lotStateName (string)
- -enabled (bool)
- int userId - User ID
- lotStateId (int)
- message (string): None if success
Code Examples
# Example usage
>lotStateInfo = {'lotStateName': 'QA Hold', 'enabled': True}
>userId = 5
>lotStateId,msg = system.kanoa.lot.addLotState(lotStateInfo, userId)
>print(lotId)