1 package FS::part_event::Action::cust_bill_send_csv_ftp;
4 use base qw( FS::part_event::Action );
6 sub description { 'Upload CSV invoice data to an FTP server'; }
10 sub eventtable_hashref {
16 'ftpformat' => { label => 'Format',
18 options => ['default', 'billco'],
19 option_labels => { 'default' => 'Default',
23 'ftpserver' => 'FTP server',
24 'ftpusername' => 'FTP username',
25 'ftppassword' => 'FTP password',
26 'ftpdir' => 'FTP directory',
30 sub default_weight { 50; }
33 my( $self, $cust_bill ) = @_;
35 #my $cust_main = $self->cust_main($cust_bill);
36 my $cust_main = $cust_bill->cust_main;
40 'server' => $self->option('ftpserver'),
41 'username' => $self->option('ftpusername'),
42 'password' => $self->option('ftppassword'),
43 'dir' => $self->option('ftpdir'),
44 'format' => $self->option('ftpformat'),