Skip to main content

system.kanoa.inventory.deleteUnitOfMeasure(uomId, userId)

Deletes the unit of measure record identified by uomId from the Kanoa MES inventory module. userId records who performed the deletion for audit purposes. Callers should confirm the unit of measure is not still referenced by active parts or transactions before deleting, since removing a unit of measure that is in use may cause referential integrity issues.


Parameters

uomId Integer: Id of unit of measure to delete
userId Integer:Id of the user executing the function


Returns

# of records modified Integer
message String None if success


Example

uomId = 8
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deleteUnitOfMeasure(uomId, userId)
print recordsModified, message