Batch Processing Script

Joel Griffiths griff at aver-computer.com
Fri Jul 23 16:17:49 PDT 1999


I finished the bash processing script.
You can get it at <http://www.ntrx.com/print_batch_1.tar.gz>.

It allows print to conf->lpr, email to conf->email, automatic payment
processing for due amount, and cust_pay_batch clearing.

Basically, to install it, place the print_batch file wherever you keep the bill
program.

If you want to use the email function, you will have to add the file 'email' to
your freeside conf.database directory.

I don't know why, but if you are running 1.2.1, you will need to comment line
147 of cust_pay.pm out:
#$self->payinfo($payinfo =~ s/\D//g);

After you run the bill command, run the print_batch command to update your
records and nnotify whoever is reposible for processing credit cards manually.

You can then put it in cron and run it.

Remember: Credit Card numbers are at stake here. Don't point your output to an
unsafe location.

Here is the pod info:
___________________________________________________________
print_batch - Prints or emails cust_pay_batch. Also deletes
              ond records and adds payment to cust_pay.
              Usually run after the bill command.
                                                                             
  =head1 SYNOPSIS

  print_batch [-v] [-p] [-e] [-a] [-d] user

=head1 DESCRIPTION

Prints or emails cust_pay_batch. Can enter payment and delete
printed records. Usually run as a cron job.

-v: Verbose - Prints records to STDOUT.

-p: Print to printer lpr as found in the conf directory.

-e: Email output to user found in the Conf email file.

-a: Automatically pays all records in cust_pay_batch.
Use -d with this option usually.

-d: Deletes record from cust_pay_batch.

user: From the mapsecrets file - see config.html from the base documentation


 --
Senior Internet Engineer                  Aver, Inc.
(760) 568-4351 Phone              (760) 341-8694 Fax
"The world won't change just because I complain."
               Martina McBride



More information about the freeside-users mailing list