Skip to main content

system.kanoa.item.updateItemClass

This function requires KanoaOPS module

Description

Updates an item class (kanoaOPS).

Syntax

updateItemClass(itemClassInfo, userId)
  • Parameters
      itemClassInfo (Dictionary) - Dictionary containing updated item class information (e.g., {'itemClassId': 1, 'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}).
      userId (Integer) - User ID.
  • Returns
      # of records modified (Integer).
  • Code Examples

    # Example Usage:
    modifiedRecords = system.kanoa.item.updateItemClass({'itemClassId': 1, 'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}, 123)