Skip to main content

system.kanoa.lot.updateLotStateReason(stateInfo, userId)

Update the lot state reason. Updates stateAssetLink table accordingly


Parameters

stateInfo Dictionary

- enabledBoolean
- lotStateIdInteger
- lotStateReasonIdInteger
- lotStateReasonNameString

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