Skip to main content

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

- enabledBooleanNot required
- lotStateColorStringi.e '#FF0000 or ' kcRed 60'. Not required
- lotStateIdInteger
- lotStateNameString

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