This article shares some possible use cases your code could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your code's implementation.
Your code could evaluate staff performance based on various metrics, including tips received.
To implement a staff performance dashboard:
createdDate
.
Alternatively, you can use
queryTipDistributions()
with the same filter and calculate the total tip per staff on your servers.