projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
cust_bill_print_pdf.pm
diff --git
a/FS/FS/part_event/Action/cust_bill_print_pdf.pm
b/FS/FS/part_event/Action/cust_bill_print_pdf.pm
index
6b37f38
..
38257b1
100644
(file)
--- a/
FS/FS/part_event/Action/cust_bill_print_pdf.pm
+++ b/
FS/FS/part_event/Action/cust_bill_print_pdf.pm
@@
-5,10
+5,21
@@
use base qw( FS::part_event::Action );
sub description { 'Send invoice (spool PDF only)'; }
sub description { 'Send invoice (spool PDF only)'; }
+## declaring that this action will send out an invoice
+sub will_send_invoice { 1; }
+
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
+sub option_fields {
+ (
+ 'modenum' => { label => 'Invoice mode',
+ type => 'select-invoice_mode'
+ },
+ );
+}
+
sub default_weight { 51; }
sub do_action {
sub default_weight { 51; }
sub do_action {
@@
-20,6
+31,7
@@
sub do_action {
my $opt = { $self->options };
$opt->{'notice_name'} ||= 'Invoice';
my $opt = { $self->options };
$opt->{'notice_name'} ||= 'Invoice';
+ $cust_bill->set('mode' => $self->option('modenum'));
$cust_bill->batch_invoice($opt);
}
$cust_bill->batch_invoice($opt);
}