Skip to main content

system.kanoa.event.deleteLotState(lotStateId, userId)

Delete a lot state. If the state has been used then it is set to disabled


Parameters

lotStateId Integer
userId Integer


Returns

# of records modified Integer
message String None if success


Example

>lotStateId = 1
>userId = 5
>retVal, msg = system.kanoa.lot.deleteLotState(lotStateId, userId)
>print(retVal) # Print the number of records modified
>print(msg) # Print the message indicating whether the reason was deleted or disabled