1 package FS::part_event::Action::cust_bill_send_csv_ftp;
4 use base qw( FS::part_event::Action );
7 'Upload CSV invoice data to an FTP server';
14 sub eventtable_hashref {
20 'ftpformat' => { label => 'Format',
22 options => ['default', 'billco'],
23 option_labels => { 'default' => 'Default',
27 'ftpserver' => 'FTP server',
28 'ftpusername' => 'FTP username',
29 'ftppassword' => 'FTP password',
30 'ftpdir' => 'FTP directory',
39 my( $self, $cust_bill ) = @_;
41 #my $cust_main = $self->cust_main($cust_bill);
42 my $cust_main = $cust_bill->cust_main;
46 'server' => $self->option('ftpserver'),
47 'username' => $self->option('ftpusername'),
48 'password' => $self->option('ftppassword'),
49 'dir' => $self->option('ftpdir'),
50 'format' => $self->option('ftpformat'),