system.kanoa.inventory.deleteSupplier(supplierId, userId)
Deletes the supplier record identified by the passed supplierId.
This is a hard delete against the supplier table and should generally be gated behind a check that no open purchase orders or parts reference the supplier before calling.
The userId is recorded for auditing who performed the deletion.
Parameters
supplierId Integer: Id of supplier to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
supplierId = 4417
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deleteSupplier(supplierId, userId)
print recordsModified, message