1 package FS::part_event::Action::cust_bill_send_agent;
4 use base qw( FS::part_event::Action );
7 'Send invoice (email/print/fax) with alternate template, for specific agents';
10 sub eventtable_hashref {
16 'agentnum' => { label => 'Only for agent(s)',
17 type => 'select-agent',
20 'agent_templatename' => { label => 'Template',
21 type => 'select-invoice_template',
23 'agent_invoice_from' => 'Invoice email From: address',
27 sub default_weight { 50; }
30 my( $self, $cust_bill ) = @_;
32 #my $cust_main = $self->cust_main($cust_bill);
33 my $cust_main = $cust_bill->cust_main;
36 $self->option('agent_templatename'),
37 [ split(/\s*,\s*/, $self->option('agentnum') ) ],
38 $self->option('agent_invoice_from'),