system.kanoa.lot.addLotStateReason
Description
Adds a new lot state reason.Syntax
addLotStateReason(lotStateReasonInfo, userId)- lotStateReasonInfo (dict)
- - lotStateReasonName (string)
- - lotStateId (int)
- -enabled (bool)
- userId (int)
- lotStateReasonId (int)
- message (string): None if success
Code Examples
# Example usage
>lotStateReasonInfo = {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print(lotStateReasonId)