X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_spool_csv.pm;h=250c8304278e78f485043d2130285493d11131b6;hb=92c9e14aa28f017837fb94e4da1d9862e30b02f8;hp=14349a9dd395914ef1e6dd0b63aad4cb14969155;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_spool_csv.pm b/FS/FS/part_event/Action/cust_bill_spool_csv.pm index 14349a9dd..250c83042 100644 --- a/FS/FS/part_event/Action/cust_bill_spool_csv.pm +++ b/FS/FS/part_event/Action/cust_bill_spool_csv.pm @@ -26,9 +26,9 @@ sub option_fields { type => 'checkbox', value => '1', }, - 'ftp_targetnum' => { label => 'Upload spool to FTP target', + 'upload_targetnum' => { label => 'Upload spool to target', type => 'select-table', - table => 'ftp_target', + table => 'upload_target', name_col => 'label', empty_label => '(do not upload)', order_by => 'targetnum', @@ -39,16 +39,17 @@ sub option_fields { sub default_weight { 50; } sub do_action { - my( $self, $cust_bill ) = @_; + my( $self, $cust_bill, $cust_event ) = @_; #my $cust_main = $self->cust_main($cust_bill); my $cust_main = $cust_bill->cust_main; $cust_bill->spool_csv( + 'time' => $cust_event->_date, 'format' => $self->option('spoolformat'), 'balanceover' => $self->option('spoolbalanceover'), 'agent_spools' => $self->option('spoolagent_spools'), - 'ftp_targetnum'=> $self->option('ftp_targetnum'), + 'upload_targetnum'=> $self->option('upload_targetnum'), ); }