summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2005-07-09 15:41:18 +0000
committerivan <ivan>2005-07-09 15:41:18 +0000
commitbacfb7f2c7c4ab53f5496603ebf95224e50fadb1 (patch)
tree7623338db8749e235a25b9d49b5a1cb840f02f9d /FS
parenta4c0576ff77b5932e337a48e56a6e02ff59964f5 (diff)
fix silly bug preventing html invoicing from finding their logo
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 8b34cb918..b9a99c900 100644
--- 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;
- 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";
@@ -553,8 +556,8 @@ sub mimebuild_pdf {
=item send [ TEMPLATENAME [ , AGENTNUM [ , INVOICE_FROM ] ] ]
-Sends this invoice to the destinations configured for this customer: send
-emails or print. See L<FS::cust_main_invoice>.
+Sends this invoice to the destinations configured for this customer: sends
+email, prints and/or faxes. See L<FS::cust_main_invoice>.
TEMPLATENAME, if specified, is the name of a suffix for alternate invoices.