system.kanoa.item.addItemPeriod
Description
Adds the period if it doesn't already exist (kanoaOPS).Syntax
addItemPeriod(periodInfo, userId)- periodInfo (Dictionary) - Dictionary containing period information (e.g., {'itemPeriodName': 'second', 'enabled': True}).
- userId (Integer) - User ID.
- itemPeriodId (Integer) - ID of the added item period.
Code Examples
# Example Usage:
newItemPeriodId = system.kanoa.item.addItemPeriod({'itemPeriodName': 'second', 'enabled': True}, 123)