projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correctly pass arguments when manually re-emailing/printing invoices, #26076
[freeside.git]
/
FS
/
FS
/
cust_bill.pm
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
cdce7be
..
1569ef4
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-1396,7
+1396,7
@@
sub email {
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
- my $opt = shift;
+ my $opt = shift
|| {}
;
if ($opt and !ref($opt)) {
die "FS::cust_bill::email called with positional parameters";
}
if ($opt and !ref($opt)) {
die "FS::cust_bill::email called with positional parameters";
}
@@
-1471,7
+1471,7
@@
I<notice_name>, if specified, overrides "Invoice" as the name of the sent docume
sub lpr_data {
my $self = shift;
my $conf = $self->conf;
sub lpr_data {
my $self = shift;
my $conf = $self->conf;
- my $opt = shift;
+ my $opt = shift
|| {}
;
if ($opt and !ref($opt)) {
# nobody does this anyway
die "FS::cust_bill::lpr_data called with positional parameters";
if ($opt and !ref($opt)) {
# nobody does this anyway
die "FS::cust_bill::lpr_data called with positional parameters";
@@
-1497,7
+1497,7
@@
sub print {
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
- my $opt = shift;
+ my $opt = shift
|| {}
;
if ($opt and !ref($opt)) {
die "FS::cust_bill::print called with positional parameters";
}
if ($opt and !ref($opt)) {
die "FS::cust_bill::print called with positional parameters";
}
@@
-1532,7
+1532,7
@@
sub fax_invoice {
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
my $self = shift;
return if $self->hide;
my $conf = $self->conf;
- my $opt = shift;
+ my $opt = shift
|| {}
;
if ($opt and !ref($opt)) {
die "FS::cust_bill::fax_invoice called with positional parameters";
}
if ($opt and !ref($opt)) {
die "FS::cust_bill::fax_invoice called with positional parameters";
}