From 172c50ae6b9bef1e72c9f454d0c3621aabe210fb Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 1 Nov 2005 03:15:32 +0000 Subject: 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 --- httemplate/edit/part_bill_event.cgi | 45 ++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'httemplate') 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' => - ''. + '
FTP server:
'. + ''. + ''. + ''. ''. '
Format ("default" or "billco"): '. + ''. + ''. + '
FTP server: '. '
FTP username: '. @@ -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' => + ''. + ''. + ''. + '
Format ("default" or "billco"): '. + ''. + ''. + '
', + 'weight' => 50, + }, + 'bill' => { 'name' => 'Generate invoices (normally only used with a Late Fee event)', 'code' => '$cust_main->bill();', -- cgit v1.2.1