system.kanoa.quality.config.updateUnit(unitInfo, userId)
Updates an engineering unit. All unitInfo keys are required.
Parameters
unitInfo Dictionary
| - enabled | Boolean | |
| - engUnitId | String | |
| - engUnitName | String |
userId Integer: Id of user executing the function
Returns
# of records modified Integer
Example
unitInfo = {'endUnitId': 78, 'engUnitName': 'Kilograms', 'enabled': True}
userId = 5
retVal = system.kanoa.quality.config.updateUnit(unitInfo, userId)