projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apply variable substitutions in latex notes also
[freeside.git]
/
httemplate
/
misc
/
print-invoice.cgi
diff --git
a/httemplate/misc/print-invoice.cgi
b/httemplate/misc/print-invoice.cgi
index
aec7cb3
..
0dda68a
100755
(executable)
--- a/
httemplate/misc/print-invoice.cgi
+++ b/
httemplate/misc/print-invoice.cgi
@@
-1,4
+1,3
@@
-<!-- $Id: print-invoice.cgi,v 1.3 2002-01-30 14:18:09 ivan Exp $ -->
<%
my $conf = new FS::Conf;
<%
my $conf = new FS::Conf;
@@
-12,7
+11,13
@@
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
die "Can't find invoice!\n" unless $cust_bill;
open(LPR,"|$lpr") or die "Can't open $lpr: $!";
die "Can't find invoice!\n" unless $cust_bill;
open(LPR,"|$lpr") or die "Can't open $lpr: $!";
- print LPR $cust_bill->print_text; #( date )
+
+ if ( $conf->exists('invoice_latex') ) {
+ print LPR $cust_bill->print_ps; #( date )
+ } else {
+ print LPR $cust_bill->print_text; #( date )
+ }
+
close LPR
or die $! ? "Error closing $lpr: $!"
: "Exit status $? from $lpr";
close LPR
or die $! ? "Error closing $lpr: $!"
: "Exit status $? from $lpr";