system.kanoa.item.deleteItemClass
Description
Deletes an item class. It may have items or other item classes underneath it. The function attempts to delete, but if there are dependencies, it returns the number of modified records and an error message (kanoaOPS).Syntax
deleteItemClass(itemClassId, userId)- itemClassId (Integer) - ID of the item class to delete.
- userId (Integer) - ID of the user.
- # of records modified (Integer), errorMessage (String).
Code Examples
# Example Usage:
itemClassId = 12
userId = 17
deletedRecords, errorMessage = system.kanoa.item.deleteItemClass(itemClassId, userId)