Billmaintain

From ISPWiki

Jump to: navigation, search

Description

Billmaintain is a utility for accounting the recurring statistics.

Command line parameters

If you wish to get all parameters and keys that can be used for running the utility, you need to run it from the command line.

 Use: billmaintain [options] <command> [parameters]
 Keys:
 -v	View the version
 -s	Add debugging information into the log
 -r	Add debugging information about the removed request to the Parameters log:
 billdaily - Process daily charges
 statdaily - Collect and process daily statistics 
 rebill <date> - Delete all expenses form the specified date and run the billing process agian 
 gotmoney <account_id> - Account got new money
 processorder <order_id> - Process the order
 closesuspended - Close long time suspended items
 autosuspend - Process suspend queue
 runhang - Rerun the manual operation
 warnmoney - Send insufficient funds notification 
 storestat - Store statistics 
 partnermonthly <date> - Process monthly the affiliate program charges
 partnerdaily - Process daily the partner program charges
 expenseunite <date> - Unite all expenses by month before given date
 calldaily - Callcenter daily process


Example

 */1	  * 	  *	  *	  *	  /usr/local/ispmgr/sbin/sendbfemails
 5	  23	  *	  *	  *	  /usr/local/ispmgr/sbin/billmaintain closesuspended
 55	  23	  *	  *	  *	  /usr/local/ispmgr/sbin/billmaintain storestat
 25  	  1	  *	  *	  *	  /usr/local/ispmgr/sbin/billmaintain warnmoney

The cron file given below displays the following actions:

  • Run the utility every minute to send email.
  • Close all long time suspended items every day at 23:05
  • Store statistics every day at 23:55
  • Send insufficient funds notifications to customers.
Was this helpful? Yes | No
Personal tools