projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
html invoices!
[freeside.git]
/
httemplate
/
view
/
cust_bill.cgi
diff --git
a/httemplate/view/cust_bill.cgi
b/httemplate/view/cust_bill.cgi
index
c217cc3
..
5dd8a8d
100755
(executable)
--- a/
httemplate/view/cust_bill.cgi
+++ b/
httemplate/view/cust_bill.cgi
@@
-62,7
+62,7
@@
unless ( $templatename ) {
) {
my $templatename = $1;
print qq! ( <A HREF="${p}view/cust_bill.cgi?$templatename-$invnum">!.
) {
my $templatename = $1;
print qq! ( <A HREF="${p}view/cust_bill.cgi?$templatename-$invnum">!.
- 'view
text
</A> | '.
+ 'view</A> | '.
qq!<A HREF="${p}view/cust_bill-pdf.cgi?$templatename-$invnum.pdf">!.
'view typeset</A> )';
}
qq!<A HREF="${p}view/cust_bill-pdf.cgi?$templatename-$invnum.pdf">!.
'view typeset</A> )';
}
@@
-74,11
+74,15
@@
unless ( $templatename ) {
print '</TABLE><BR>';
}
print '</TABLE><BR>';
}
-print '<PRE>', $cust_bill->print_text('', $templatename);
+if ( $conf->exists('invoice_html') ) {
+ print $cust_bill->print_html('', $templatename);
+} else {
+ print '<PRE>', $cust_bill->print_text('', $templatename), '</PRE>';
+}
#formatting
print <<END;
#formatting
print <<END;
- </
PRE></
FONT>
+ </FONT>
</BODY>
</HTML>
END
</BODY>
</HTML>
END