diff options
author | ivan <ivan> | 2005-11-01 03:15:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-01 03:15:32 +0000 |
commit | 172c50ae6b9bef1e72c9f454d0c3621aabe210fb (patch) | |
tree | 088754c20e9bc40d101e8e06289a4bf0f293ee66 /httemplate/edit | |
parent | 0da0726449c32868963ddace7630892c37cdeb6f (diff) |
add billco format option to FTP invoice send, add invoice event to spool one giant (pair of) CSV files in addition to FTPing them individually
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/part_bill_event.cgi | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi index 06bdaf647..e60cc87e9 100755 --- a/httemplate/edit/part_bill_event.cgi +++ b/httemplate/edit/part_bill_event.cgi @@ -214,13 +214,26 @@ tie my %events, 'Tie::IxHash', 'send_csv_ftp' => { 'name' => 'Upload CSV invoice data to an FTP server', - 'code' => '$cust_bill->send_csv( protocol => \'ftp\', - server => \'%%%ftpserver%%%\', - username => \'%%%ftpusername%%%\', - password => \'%%%ftppassword%%%\', - dir => \'%%%ftpdir%%%\' );', + 'code' => '$cust_bill->send_csv( protocol => \'ftp\', + server => \'%%%ftpserver%%%\', + username => \'%%%ftpusername%%%\', + password => \'%%%ftppassword%%%\', + dir => \'%%%ftpdir%%%\', + \'format\' => \'%%%ftpformat%%%\', + );', 'html' => - '<TABLE BORDER=0><TR><TD ALIGN="right">FTP server: </TD>'. + '<TABLE BORDER=0>'. + '<TR><TD align="right">Format ("default" or "billco"): </TD>'. + '<TD>'. + '<!--'. + '<SELECT NAME="ftpformat">'. + '<OPTION VALUE="default">Default'. + '<OPTION VALUE="billco">Billco'. + '</SELECT>'. + '-->'. + '<INPUT TYPE="text" NAME="ftpformat" VALUE="%%%ftpformat%%%">'. + '</TD></TR>'. + '<TR><TD ALIGN="right">FTP server: </TD>'. '<TD><INPUT TYPE="text" NAME="ftpserver" VALUE="%%%ftpserver%%%">'. '</TD></TR>'. '<TR><TD ALIGN="right">FTP username: </TD><TD>'. @@ -236,6 +249,26 @@ tie my %events, 'Tie::IxHash', 'weight' => 50, }, + 'spool_csv' => { + 'name' => 'Spool CSV invoice data', + 'code' => '$cust_bill->spool_csv( \'format\' => \'%%%spoolformat%%%\', + );', + 'html' => + '<TABLE BORDER=0>'. + '<TR><TD align="right">Format ("default" or "billco"): </TD>'. + '<TD>'. + '<!--'. + '<SELECT NAME="spoolformat">'. + '<OPTION VALUE="default">Default'. + '<OPTION VALUE="billco">Billco'. + '</SELECT>'. + '-->'. + '<INPUT TYPE="text" NAME="spoolformat" VALUE="%%%spoolformat%%%">'. + '</TD></TR>'. + '</TABLE>', + 'weight' => 50, + }, + 'bill' => { 'name' => 'Generate invoices (normally only used with a <i>Late Fee</i> event)', 'code' => '$cust_main->bill();', |