1 package FS::part_event::Action::cust_bill_spool_csv;
4 use base qw( FS::part_event::Action );
7 'Spool CSV invoice data';
14 sub eventtable_hashref {
20 'spoolformat' => { label => 'Format',
22 options => ['default', 'billco'],
23 option_labels => { 'default' => 'Default',
27 'spooldest' => { label => 'For destination',
29 options => [ '', qw( POST EMAIL FAX ) ],
30 option_labels => { '' => '(all)',
31 'POST' => 'Postal Mail',
36 'spoolbalanceover' => { label =>
37 'If balance (this invoice and previous) over',
40 'spoolagent_spools' => { label => 'Individual per-agent spools',
51 my( $self, $cust_bill ) = @_;
53 #my $cust_main = $self->cust_main($cust_bill);
54 my $cust_main = $cust_bill->cust_main;
56 $cust_bill->spool_csv(
57 'format' => $self->option('spoolformat'),
58 'dest' => $self->option('spooldest'),
59 'balanceover' => $self->option('spoolbalanceover'),
60 'agent_spools' => $self->option('spoolagent_spools'),