system.kanoa.item.addItemPeriod(periodInfo, userId)
Adds the item period i.e 'Hours', 'Minutes'. All periodInfo keys are required.
Parameters
periodInfo Dictionary
| - enabled | Boolean | |
| - itemPeriodName | String |
userId Integer: Id of user executing the function
Returns
itemPeriodId Integer
Example
itemPeriodId = system.kanoa.item.addItemPeriod({'itemPeriodName': 'second', 'enabled': True}, 123)