You'll need some php programming experience to automate things like this.

To automate things it relies on the server's cron scheduling services
on unix servers to run the commands at a specified time, or on a
windows server you could probably do something similar with the Task
Scheduler.

PHP has a command line interpreter that can be used to execute the
citrusdb files.  On a unix server this can be used much like the perl
or shell interpreter is used, so you can put the path to your php
executable like #!/usr/local/bin/php at the top of the script you want
to run.  On windows servers it would be something like:
C:\path\to\php\php.exe <filename.php>

To run a CitrusDB script from the command line you'll need to make a
copy of the script to edit, in this case the einvoice.php file which
is inside of the tools/modules/billing folder.  It may be best to move
it up a few levels to the citrusdb folder itself so your include
path's are easier to figure out. With the new copy, you'll need to
edit it to include the stuff from the includes files, just like it's
included in the index.php file normally, so you'll need to put these
near the top of the script:

// Includes
include('./include/config.inc.php');
include("$lang");
include('./include/database.inc.php');
include('./include/billing.inc.php');
require './include/citrus_base.php';

Then you'll need to write some php code in the new script to generate
the input you want, such as the today's date in the billing_date
variable, since the form isn't being accessed by the web, all the
input and output needs to be handled there.  You can also remove some
things from your new einvoice script like the thing that prints the
form interface and such since this is all going to be accessed by the
computer with pre-programmed input.

Paul


On Nov 5, 2007 11:14 AM, Jack Martin <[EMAIL PROTECTED]> wrote:
> OK - That confuses the hell outta me!!  LOL
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paul Yasi
> Sent: Monday, November 05, 2007 8:33 AM
> To: For users of CitrusDB discussion
> Subject: Re: [Citrusdb-users] Automatic Billing
>
> I mean the current day's email-invoices.
>
> On Nov 5, 2007 9:32 AM, Paul Yasi <[EMAIL PROTECTED]> wrote:
> > You could copy the tools/modules/billing/einvoice.php file and the
> > includes and then edit the einvoice.php file to run on it's own with
> > the php command line client using today's date in a cron job to export
> > the current day's credit card batch.
> >
> > Paul
> >
> >
> > On Nov 3, 2007 1:10 PM, Jack Martin <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Is there a way to setup a cron job to automatically generate and
> > > email the invoices monthly?  That is a feature I am very interested in.
> > >
> > > Jack D. Martin, Jr.
> > >
> > > Wireless Internet Service Providers LLC [EMAIL PROTECTED]
> > > P.O. Box 278 Oilton, OK  74052 When you make a mistake, there are
> > > only three things you should ever do about it: 1. Admit it. 2. Learn
> > > from it, and 3. Don't repeat it. - Paul "Bear" Bryant
> > >
> > > --------------------------------------------------------------------
> > > ----- This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > _______________________________________________
> > > Citrusdb-users mailing list
> > > Citrusdb-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/citrusdb-users
> > >
> > >
> >
> >
> >
> > --
> > The CitrusDB Project | http://www.citrusdb.org Open Source Customer
> > Care & Billing System
> >
>
>
>
> --
> The CitrusDB Project | http://www.citrusdb.org Open Source Customer Care &
> Billing System
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Citrusdb-users mailing list
> Citrusdb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/citrusdb-users
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Citrusdb-users mailing list
> Citrusdb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/citrusdb-users
>



-- 
The CitrusDB Project | http://www.citrusdb.org
Open Source Customer Care & Billing System

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Citrusdb-users mailing list
Citrusdb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/citrusdb-users

Reply via email to