Skip to main content

system.kanoa.quality.config.updateUnit(unitInfo, userId)

Updates an engineering unit. All unitInfo keys are required.


Parameters

unitInfo Dictionary

- enabledBoolean
- engUnitIdString
- engUnitNameString

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)