Skip to main content

system.kanoa.item.addItemPeriod(periodInfo, userId)

Adds the item period i.e 'Hours', 'Minutes'. All periodInfo keys are required.


Parameters​

periodInfo Dictionary

- enabledBoolean
- itemPeriodNameString

userId Integer: Id of user executing the function


Returns​

itemPeriodId Integer


Example​

itemPeriodId = system.kanoa.item.addItemPeriod({'itemPeriodName': 'second', 'enabled': True}, 123)