system.kanoa.item.updateItemUnit(itemUnitInfo, userId)
Updates an item unit. itemUnitInfo keys are required.
Parameters
itemUnitInfo Dictionary
| - enabled | Boolean | |
| - itemUnitName | String |
userId Integer: Id of user executing the function
Returns
retVal Integer # of records modified
msg String None if success
Example
userId = 47
retVal, msg = system.kanoa.item.updateItemUnit({'itemUnitId': 12, 'itemUnitName': 'Kilograms', 'enabled': True, userId)