system.kanoa.inventory.deletePartInventoryBalance(partInventoryBalanceId, userId)
Deletes the part inventory balance record identified by partInventoryBalanceId.
Use this to remove a balance row entirely, such as when a part is retired from a given inventory asset (warehouse, bin, or storeroom location)
and its on-hand/on-order/reserved quantities should no longer be tracked there.
Parameters
partInventoryBalanceId Integer: Id of part inventory balance to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
# Remove an inventory balance record for a discontinued filter part
partInventoryBalanceId = 578
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deletePartInventoryBalance(partInventoryBalanceId, userId)
print recordsModified, message