system.kanoa.event.updateWorkOrderCount
Description
Allows the count to be updated for a work order after a work order has been completed.Syntax
updateWorkOrderCount(counterId, assetId, value, workOrderName, userId=None)- counterId - Counter ID.
- assetId - Asset ID.
- value (float) - Delta value.
- workOrderName - Work order name.
- userId (int) - User ID.
Records deleted (int).
Code Example
# Example Usage:
counterId = 123
assetId = 456
value = 5.0
workOrderName = 'WorkOrder123'
userId = 999
recordsDeleted = system.kanoa.event.updateWorkOrderCount(counterId, assetId, value, workOrderName, userId)