Skip to main content

system.kanoa.event.resetCountEvents(assetId, tStamp, userId)

Counts will calculate infeed, outfeed and waste if no counterEvents exists for a given time range. This can cause the outfeed to calculate that it has products before the last machine outfeed count has entered a value This function is called at the beginning of a run to set a zero in the counterEvents table for an assets counters.


Parameters

assetId Integer: Id of asset
tStamp DateTime: Timestamp to reset count value
userId Integer


Returns

None


Example

assetId = 123
tStamp = system.date.now()
userId = 999
system.kanoa.event.resetCountEvents(assetId, tStamp, userId)