system.kanoa.lot.updateLotStateReason(stateInfo, userId)
Update the lot state reason. Updates stateAssetLink table accordingly
Parameters
stateInfo Dictionary
| - enabled | Boolean | |
| - lotStateId | Integer | |
| - lotStateReasonId | Integer | |
| - lotStateReasonName | String |
userId Integer
Returns
# of records modified Integer
message String None if success
Example
>lotStateReasonInfo = {'lotStateReasonId': 3,'lotStateId': 1, 'lotStateReasonName': 'Bad Color', 'enabled': False}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotStateReason(lotStateReasonInfo, userId)
>print retVal, msg