projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make RADIUS groups available to shellcommands exports
[freeside.git]
/
FS
/
FS
/
cust_bill.pm
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
a6b4e1e
..
7e2c8fb
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-339,7
+339,7
@@
sub send {
'subject' => 'Invoice',
'body' => \@print_text,
);
'subject' => 'Invoice',
'body' => \@print_text,
);
-
return "can't send invoice: $error
" if $error;
+
die "can't email invoice: $error\n
" if $error;
}
}
@@
-350,11
+350,11
@@
sub send {
if ( grep { $_ eq 'POST' } @invoicing_list ) { #postal
my $lpr = $conf->config('lpr');
open(LPR, "|$lpr")
if ( grep { $_ eq 'POST' } @invoicing_list ) { #postal
my $lpr = $conf->config('lpr');
open(LPR, "|$lpr")
- or
return "Can't open pipe to $lpr: $!
";
+ or
die "Can't open pipe to $lpr: $!\n
";
print LPR @print_text;
close LPR
print LPR @print_text;
close LPR
- or
return $! ? "Error closing $lpr: $!
"
-
: "Exit status $? from $lpr
";
+ or
die $! ? "Error closing $lpr: $!\n
"
+
: "Exit status $? from $lpr\n
";
}
'';
}
'';
@@
-1153,7
+1153,7
@@
sub print_pdf {
open(PDF, "<$file.pdf")
or die "can't open $file.pdf (probably error in LaTeX tempalte: $!\n";
open(PDF, "<$file.pdf")
or die "can't open $file.pdf (probably error in LaTeX tempalte: $!\n";
-
#
unlink("$file.dvi", "$file.log", "$file.aux", "$file.pdf", "$file.tex");
+ unlink("$file.dvi", "$file.log", "$file.aux", "$file.pdf", "$file.tex");
my $pdf = '';
while (<PDF>) {
my $pdf = '';
while (<PDF>) {