X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_bill_event.cgi;h=48ed7916b76f2882f5c530d661b9dc82ebb98cf2;hp=c41cfe9cfa1b57a20bb93c367fb10d55100bbfca;hb=a800fde5d31fb9b9cfe46b1ce2f68ea8e56bff53;hpb=c7ff9a58360788ce776022606c4ec3496062013b diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi index c41cfe9cf..48ed7916b 100755 --- a/httemplate/edit/part_bill_event.cgi +++ b/httemplate/edit/part_bill_event.cgi @@ -1,5 +1,4 @@ - - + <% if ( $cgi->param('eventpart') && $cgi->param('eventpart') =~ /^(\d+)$/ ) { @@ -21,7 +20,7 @@ if ( $query && $query =~ /^(\d+)$/ ) { } else { $part_bill_event ||= new FS::part_bill_event {}; } -$action ||= $part_bill_event->pkgpart ? 'Edit' : 'Add'; +$action ||= $part_bill_event->eventpart ? 'Edit' : 'Add'; my $hashref = $part_bill_event->hashref; print header("$action Invoice Event Definition", menubar( @@ -42,10 +41,10 @@ print ntable("#cccccc",2), <Payby', + 'weight' => 50, + }, + + '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%%%\' );', + 'html' => + ''. + ''. + ''. + ''. + ''. + ''. + '
FTP server: '. + '
FTP username: '. + ''. + '
FTP password: '. + ''. + '
FTP directory: '. + '
', + 'weight' => 50, }, 'bill' => { - 'name' => 'Generate invoices', + 'name' => 'Generate invoices (normally only used with a Late Fee event)', 'code' => '$cust_main->bill();', - 'weight' => 40, + 'weight' => 60, }, 'apply' => { 'name' => 'Apply unapplied payments and credits', - 'code' => '$cust_main->apply_payments; $cust_main->apply_credits;', - 'weight' => 50, + 'code' => '$cust_main->apply_payments; $cust_main->apply_credits; "";', + 'weight' => 70, }, 'collect' => { - 'name' => 'Collect on invoices', + 'name' => 'Collect on invoices (normally only used with a Late Fee and Generate Invoice events)', 'code' => '$cust_main->collect();', - 'weight' => 60, + 'weight' => 80, }, ;