projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
invoice configurations, #24723
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
cust_bill_send_alternate.pm
diff --git
a/FS/FS/part_event/Action/cust_bill_send_alternate.pm
b/FS/FS/part_event/Action/cust_bill_send_alternate.pm
index
cfd9264
..
fb71a5a
100644
(file)
--- a/
FS/FS/part_event/Action/cust_bill_send_alternate.pm
+++ b/
FS/FS/part_event/Action/cust_bill_send_alternate.pm
@@
-11,6
+11,8
@@
sub eventtable_hashref {
sub option_fields {
(
sub option_fields {
(
+ 'modenum' => { label => 'Invoice mode',
+ type => 'select-invoice_mode' },
'templatename' => { label => 'Template',
type => 'select-invoice_template',
},
'templatename' => { label => 'Template',
type => 'select-invoice_template',
},
@@
-25,7
+27,8
@@
sub do_action {
#my $cust_main = $self->cust_main($cust_bill);
my $cust_main = $cust_bill->cust_main;
#my $cust_main = $self->cust_main($cust_bill);
my $cust_main = $cust_bill->cust_main;
- $cust_bill->send( $self->option('templatename') );
+ $cust_bill->set('mode' => $self->option('modenum'));
+ $cust_bill->send({'template' => $self->option('templatename')});
}
1;
}
1;