kanoa.event.addCounterEvent
Description
Adds a count to the counterEvent table. This is an updated count function that support itemStates, items and workorders being associated to counts.Syntax
addCountEvent(counterInfo, userId)- counterInfo (dict)
- - counterId (int)
- - deltaValue (float)
- - itemStateId (int)
- - itemId (int)
- - workOrderId (int)
- - tStamp (datetime)
- userId (int)
- counterId (int)
- msg (string): none if success
Code Example
# Example Usage:
counterId = 123
deltaValue = 5.0
tStamp = timestamp
system.kanoa.event.addCountEvent(counterId, deltaValue, tStamp)