use strict;
use base qw( FS::part_event::Action );
+use FS::Misc;
sub description { 'Spool CSV invoice data'; }
(
'spoolformat' => { label => 'Format',
type => 'select',
- options => ['default', 'billco', 'oneline'],
- option_labels => { 'default' => 'Default',
- 'billco' => 'Billco',
- 'oneline' => 'One line',
- },
+ options => [ FS::Misc::spool_formats() ],
},
'spoolbalanceover' => { label =>
'If balance (this invoice and previous) over',
type => 'checkbox',
value => '1',
},
+ 'ftp_targetnum' => { label => 'Upload spool to FTP target',
+ type => 'select-table',
+ table => 'ftp_target',
+ name_col => 'label',
+ empty_label => '(do not upload)',
+ order_by => 'targetnum',
+ },
);
}
'format' => $self->option('spoolformat'),
'balanceover' => $self->option('spoolbalanceover'),
'agent_spools' => $self->option('spoolagent_spools'),
+ 'ftp_targetnum'=> $self->option('ftp_targetnum'),
);
}