![]() |
BillMax Billing Solutions 877.245.5629 sales@billmax.com |
BillMax_StatsCounter — Create or update a counter record stored in the stats table
#include "billmax.h"
int BillMax_StatsCounter( |
stype, | |
| stype, | ||
| sgroup, | ||
increment); |
|
stype; |
|
sgroup; |
|
increment; |
Creates or updates a counter record stored in the stats table. If the record exists, it is selected by matching the current date, stype and sgroup. The value is updated by adding increment. If the record doesn't exist, it is created using the current date, stype and sgroup.
The type of sample captured.
The group to which this sample belongs. The most common value is a Service number.
Amount to add to stats.value if the database record exists. If the record doesn't exist, the amount for the initial value of stats.value when creating a new database record.