Skip to main content

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

Adds a lot state reason to a lot state


Parameters

lotStateReasonInfo Dictionary

- enabledBoolean
- lotStateIdInteger
- lotStateReasonNameString

userId Integer


Returns

lotStateReasonId Integer
message String None if success


Example

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