projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4c0576
)
fix silly bug preventing html invoicing from finding their logo
author
ivan
<ivan>
Sat, 9 Jul 2005 15:41:18 +0000
(15:41 +0000)
committer
ivan
<ivan>
Sat, 9 Jul 2005 15:41:18 +0000
(15:41 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
8b34cb9
..
b9a99c9
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-417,7
+417,10
@@
sub generate_email {
my $path = "$FS::UID::conf_dir/conf.$FS::UID::datasrc";
my $file;
my $path = "$FS::UID::conf_dir/conf.$FS::UID::datasrc";
my $file;
- if ( [ -e "$path/logo_". $args{'_template'}. ".png" ] ) {
+ if ( length($args{'_template'})
+ && -e "$path/logo_". $args{'_template'}. ".png"
+ )
+ {
$file = "$path/logo_". $args{'_template'}. ".png";
} else {
$file = "$path/logo.png";
$file = "$path/logo_". $args{'_template'}. ".png";
} else {
$file = "$path/logo.png";
@@
-553,8
+556,8
@@
sub mimebuild_pdf {
=item send [ TEMPLATENAME [ , AGENTNUM [ , INVOICE_FROM ] ] ]
=item send [ TEMPLATENAME [ , AGENTNUM [ , INVOICE_FROM ] ] ]
-Sends this invoice to the destinations configured for this customer: send
-email
s or print
. See L<FS::cust_main_invoice>.
+Sends this invoice to the destinations configured for this customer: send
s
+email
, prints and/or faxes
. See L<FS::cust_main_invoice>.
TEMPLATENAME, if specified, is the name of a suffix for alternate invoices.
TEMPLATENAME, if specified, is the name of a suffix for alternate invoices.