system.kanoa.lot.updateLotState(stateInfo, userId)
Update the state info for a given stateId. Updates stateAssetLink table accordingly
Parameters
stateInfo Dictionary
| - enabled | Boolean | |
| - lotStateId | Integer | |
| - lotStateName | String |
userId Integer
Returns
# of records modified Integer
message String None if success
Example
>lotStateInfo = {'lotStateId': 1, 'lotStateName': 'QA Hold', 'enabled': False}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotState(lotStateInfo, userId)
>print retVal, msg