system.kanoa.inventory.updateSupplierField(supplierId, field, value, userId)
Updates a single named field on the supplier identified by supplierId, setting it to value.
This is a lighter-weight alternative to updateSupplier when only one column needs to change.
The userId is recorded for auditing who performed the update.
Parameters
supplierId Integer: Id of supplier to update
field String: Valid options are supplierName, accountNumber, contactName, email, phone, websiteUrl, enabled
value String: Value to update to
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
field = 'phone'
value = '800-555-0199'
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.updateSupplierField(supplierId, field, value, userId)
print recordsModified, message