system.kanoa.lot.addLotStateReason
Description
Adds a new lot state reason.Syntax
addLotStateReason(lotStateReasonInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotStateReasonName | string | ||
lotStateId | int | ||
enabled | bool |
Code Examples
# Example usage
>lotStateReasonInfo = {'lotStateReasonName': 'Bad Coloring', 'lotStateId': 2, 'enabled': True}
>lotStateReasonId, msg = system.kanoa.lot.addLotStateReason(lotStateReasonInfo, userId)
> print(lotStateReasonId)