system.kanoa.inventory.deletePartInventoryPolicy(partInventoryPolicyId, userId)
Deletes the part inventory policy identified by partInventoryPolicyId.
Use this to remove reorder/stocking rules for a part at a location that is no longer stocked or has been superseded by a new policy.
The id of the user performing the deletion is required for auditing.
Parameters
partInventoryPolicyId Integer: Id of part inventory policy to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
partInventoryPolicyId = 733
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deletePartInventoryPolicy(partInventoryPolicyId, userId)
print recordsModified, message