system.kanoa.item.addItemClass
Description
Adds a new item class (kanoaOPS).Syntax
addItemClass(itemClassInfo, userId)- itemClassInfo (Dictionary) - Dictionary containing item class information (e.g., {'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}).
- userId (Integer) - User ID.
- itemclassId (Integer) - ID of the added item class.
Code Examples
# Example Usage:
newItemClassId = system.kanoa.item.addItemClass({'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}, 123)