1 package FS::part_event::Action::cust_bill_spool_csv;
4 use base qw( FS::part_event::Action );
6 sub description { 'Spool CSV invoice data'; }
10 sub eventtable_hashref {
16 'spoolformat' => { label => 'Format',
18 options => ['default', 'billco', 'oneline'],
19 option_labels => { 'default' => 'Default',
21 'oneline' => 'One line',
24 'spoolbalanceover' => { label =>
25 'If balance (this invoice and previous) over',
28 'spoolagent_spools' => { label => 'Individual per-agent spools',
35 sub default_weight { 50; }
38 my( $self, $cust_bill ) = @_;
40 #my $cust_main = $self->cust_main($cust_bill);
41 my $cust_main = $cust_bill->cust_main;
43 $cust_bill->spool_csv(
44 'format' => $self->option('spoolformat'),
45 'balanceover' => $self->option('spoolbalanceover'),
46 'agent_spools' => $self->option('spoolagent_spools'),