billmax documentation   BillMax Billing Solutions
  877.245.5629
  sales@billmax.com
 

Name

make_statements — Creates customer Statements

Synopsis

/usr/local/billmax/bin/make_statements [-g] [-s date] [-o] [-C { virtualcompany1,virtualcompany2 ...} ] [-h]

DESCRIPTION

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] 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.

OPTIONS

-g

When 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.

-o

Run make_statements for one day only.

-C virtualcompany1,virtualcompany2,...

Comma delimited list of Virtual Companys. Output data for the listed Virtual Companies.

-h

Show help for this program.

RETURN VALUE

System value EX_OK for success.

NOTES

NONE

SEE ALSO

NONE


Document Revision A for BillMax 2.2.0   -   Copyright © 1997-2006 The iSpark Group, Inc.

All rights reserved. No part of this documentation may be reproduced or transmitted in any fashion without written permission by The iSpark Group, Inc. This documentation is for the sole use of licensees of the BillMax billing software created by The iSpark Group, Inc. Making the documentation available to a non-licensee of BillMax without written permission of The iSpark Group, Inc. is a violation of the use of this documentation.

While precautions have been taken in the preparation of this documentation, The iSpark Group, Inc. assumes neither liability nor responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

All terms mentioned that are known to be trademarks have been appropriately capitalized. Use of the a trademark does not affect the validity of any trademark or service mark.

Links to third-party Web sites are provided for convenience. The iSpark Group, Inc. is not responsible for any content contained in the third-party Web sites.

Comments about this documentation may be sent to doc@billmax.com