system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
Adds a lot state reason to a lot state
Parameters
lotStateReasonInfo Dictionary
| - enabled | Boolean | |
| - lotStateId | Integer | |
| - lotStateReasonName | String |
userId Integer
Returns
lotStateReasonId Integer
message String None if success
Example
>lotStateReasonInfo = {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print lotStateReasonId, msg