system.kanoa.inventory.deleteManufacturer(manufacturerId, userId)
Deletes the manufacturer record identified by manufacturerId.
This is a permanent removal from the inventory catalog, so callers should confirm the manufacturer is not referenced by active parts or models before invoking it.
The userId is recorded for audit purposes on the deletion.
Parameters
manufacturerId Integer: Id of manufacturer to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
manufacturerId = 42
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deleteManufacturer(manufacturerId, userId)
print recordsModified, message