Skip to main content

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

Adds a lot state reason to a lot state


Parameters

lotStateReasonInfo Dictionary: All keys are required unless otherwise stated

- enabledBooleanNot required
- lotStateIdInteger
- lotStateReasonColorStringNot required
- lotStateReasonNameString

userId Integer:Id of the user executing the function


Returns

lotStateReasonId Integer
message String None if success


Example

>lotStateReasonInfo =  {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'lotStateReasonColor': '#FF0000', 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print lotStateReasonId, msg