system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
Adds a lot state reason to a lot state
Parameters
lotStateReasonInfo Dictionary: All keys are required unless otherwise stated
| - enabled | Boolean | Not required |
| - lotStateId | Integer | |
| - lotStateReasonColor | String | Not required |
| - lotStateReasonName | String |
userId Integer:Id of the user executing the function
Returns
lotStateReasonId Integer
message String None if success
Example
>lotStateReasonInfo = {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'lotStateReasonColor': '#FF0000', 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print lotStateReasonId, msg