1 package FS::part_event::Action::cust_bill_spool_csv;
4 use base qw( FS::part_event::Action );
7 sub description { 'Spool CSV invoice data'; }
11 sub eventtable_hashref {
17 'spoolformat' => { label => 'Format',
19 options => [ FS::Misc::spool_formats() ],
21 'spoolbalanceover' => { label =>
22 'If balance (this invoice and previous) over',
25 'spoolagent_spools' => { label => 'Individual per-agent spools',
29 'ftp_targetnum' => { label => 'Upload spool to FTP target',
30 type => 'select-table',
31 table => 'ftp_target',
33 empty_label => '(do not upload)',
34 order_by => 'targetnum',
39 sub default_weight { 50; }
42 my( $self, $cust_bill ) = @_;
44 #my $cust_main = $self->cust_main($cust_bill);
45 my $cust_main = $cust_bill->cust_main;
47 $cust_bill->spool_csv(
48 'format' => $self->option('spoolformat'),
49 'balanceover' => $self->option('spoolbalanceover'),
50 'agent_spools' => $self->option('spoolagent_spools'),
51 'ftp_targetnum'=> $self->option('ftp_targetnum'),