system.kanoa.lot.updateLotState(lotStateInfo, userId)
Update the state info for a given stateId. All lotStateInfo keys are required unless otherwise stated.
Parameters
lotStateInfo Dictionary
| - enabled | Boolean | Not required |
| - lotStateColor | String | i.e '#FF0000 or ' kcRed 60'. Not required |
| - lotStateId | Integer | |
| - lotStateName | String |
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
>lotStateInfo = {'lotStateId': 1, 'lotStateName': 'QA Hold', 'enabled': False, 'lotStateColor': '#FF0000'}
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotState(lotStateInfo, userId)
>print retVal, msg