projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tax report improvements, #23449, #25935
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
cust_bill_print.pm
diff --git
a/FS/FS/part_event/Action/cust_bill_print.pm
b/FS/FS/part_event/Action/cust_bill_print.pm
index
6b3e6f4
..
ea6e0aa
100644
(file)
--- a/
FS/FS/part_event/Action/cust_bill_print.pm
+++ b/
FS/FS/part_event/Action/cust_bill_print.pm
@@
-9,6
+9,14
@@
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
{ '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 {
@@
-17,6
+25,7
@@
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->set('mode' => $self->option('modenum'));
$cust_bill->print;
}
$cust_bill->print;
}