summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-xhttemplate/view/cust_bill.cgi10
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index c217cc389..5dd8a8d71 100755
--- 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">!.
- 'view text</A> | '.
+ 'view</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 '<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;
- </PRE></FONT>
+ </FONT>
</BODY>
</HTML>
END