diff options
| author | cvs2git <cvs2git> | 1998-09-03 04:09:10 +0000 | 
|---|---|---|
| committer | cvs2git <cvs2git> | 1998-09-03 04:09:10 +0000 | 
| commit | ee11db5df023549e5e4a9bf115b274badfb2f449 (patch) | |
| tree | f00fd7c207982305ab126413795c20e8a02d54dd /htdocs/docs | |
| parent | d5c908429be3cfd86350541103c8bd7503d9cdb3 (diff) | |
| parent | 13836fa8df9d3849f089d47342b25162327c28f7 (diff) | |
This commit was manufactured by cvs2svn to create branch 'freeside_import'.
Diffstat (limited to 'htdocs/docs')
| -rw-r--r-- | htdocs/docs/billing.html | 40 | 
1 files changed, 40 insertions, 0 deletions
| diff --git a/htdocs/docs/billing.html b/htdocs/docs/billing.html new file mode 100644 index 000000000..02bfbd783 --- /dev/null +++ b/htdocs/docs/billing.html @@ -0,0 +1,40 @@ +<head> +  <title>Billing</title> +</head> +<body> +  <h1>Billing</h1> +  The bin/bill script can be run daily to bill all customers.  Usage: bill [ -c [ i ] ] [ -d <i>date</i> ] [ -b ] +  <ul> +    <li>-c: Turn on collecting (you probably want this). +    <li>-i: Real-time billing (as opposed to bacth billing).  Only relevant for credit cards.  Not available without modifying site_perl/Bill.pm +    <li>-d: Pretend it is <i>date</i> (parsed by Date::Parse) +    <li>-b: N/A +  </ul> +  Printing should be configured on your freeside machine to print invoices. +  <br><br>Batch credit card processing +  <ul> +    <li>After this script is run, a credit card batch will be in the <a href="schema.html#cust_pay_batch">cust_pay_batch</a> table.  Export this table to your credit card batching. +    <li>When your batch completes, erase the cust_pay_batch records in that batch and add any necessary paymants to the <a href="schema.html#cust_pay">cust_pay</a> table.  Example code to add payments is: +    <pre>use FS::cust_pay; + +# loop over all records in batch + +my $payment=create FS::cust_pay ( +  'invnum' => $invnum, +  'paid' => $paid, +  '_date' => $_date, +  'payby' => $payby, +  'payinfo' => $payinfo, +  'paybatch' => $paybatch, +); + +my $error=$payment->insert; +if ( $error ) { +  #process error +} + +# end loop +</pre> +All fields except paybatch are contained in the cust_pay_batch table.  You can use paybatch field to track particular batches and/or particular transactions within a batch. +  </ul> +</body> | 
