Skip to main content

system.kanoa.quality.config.addUnit

This function requires KanoaQDS module

Description

Adds a new engineering unit in KanoaQDS.

Syntax

addUnit(unitInfo, userId)
  • Parameters
      unitInfo (dict)
      - engUnitName (string)
      - enabled (bool)
      userId (int)
  • Returns
      engUnitId (int)
      msg (string): None if success
  • Code Examples

    # Usage example
    >unitInfo = {'engUnitName': 'Kilograms', 'enabled': True}
    >userId = 5
    >engUnitId = system.kanoa.quality.config.addUnit(unitInfo, userId)