Skip to main content

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

Update the lot state reason. Updates stateAssetLink table accordingly. All keys are required unless otherwise stated.


Parameters

lotStateReasonInfo Dictionary

- enabledBooleanNot required
- lotStateIdInteger
- lotStateReasonColorStringNot required
- lotStateReasonIdInteger
- lotStateReasonNameString

userId Integer:Id of the user executing the function


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