# this event is just cust_bill_send_alternate + an implicit (and inefficient)
# 'agent' condition
+## declaring that this action will send out an invoice
+sub will_send_invoice { 1; }
+
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
$cust_bill->set('mode' => $self->option('modenum'));
$cust_bill->send(
- 'template' => $self->option('agent_templatename'),
- 'invoice_from' => $self->option('agent_invoice_from'),
+ 'template' => $self->option('agent_templatename'),
+ 'from' => $self->option('agent_invoice_from'),
);
}