![]() |
BillMax Billing Solutions 877.245.5629 sales@billmax.com |
make_statements — Creates customer Statements
/usr/local/billmax/bin/make_statements [-g] [-s date] [-o] [-C
{
virtualcompany1,virtualcompany2
...}
] [-h]
Creates customer Statements. Inserts Summary records into the BillMax database and creates a Statement for future delivery. The timing of inserting the Summary and creating a Statement may be controlled by config.sendnullstmt. Please see the discussion on Statement processing in "Introducing BillMax".
The dates over which make_statements processes is from the day after the date stored in /usr/local/billmax/logs/make_statements.state to the current date. /usr/local/billmax/logs/make_statements.state contains the date of the last successful make_statements run. If no /usr/local/billmax/logs/make_statements.state is found, then make_statements processes the current date.
![]() |
Note |
|---|---|
make_statements stores Statements in the appropriate subdirectory of /usr/local/billmax/statements/statementdate where statementdate is the date for which make_statements is processing, not necessarily the current date. If make_statements iterates over several dates during one execution (i.e. catching up to the current date), Statements created for dates in the past will be stored in the directory specified by a past date. |
It is recommended that if non-monthly based statement processing is to be done, that the -g be specified.
-gWhen sending a monthly Statements, create the Summary and the Statement on account.invday, taking into consideration config.prebilldays. Default behavior is to create the Summary and the Statement the day after account.invday. This is useful if delayed credit card processing is to be performed. Delayed credit card processing does not work well with non-monthly based statement processing. If delayed credit card processing is used with non-monthly based statement processing, then the customer will get a statement for the billings followed by a statement for the credit card processing.
-s date
Do not create the Summary record. This is useful when re-running Statement creation. date specifies the date of the statement run that should be recreated. It is matched against payhist.batchid.
-oRun make_statements for one day only.
-C virtualcompany1,virtualcompany2,...Comma delimited list of Virtual Companys. Output data for the listed Virtual Companies.
-hShow help for this program.