summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2005-05-14 16:27:26 +0000
committerivan <ivan>2005-05-14 16:27:26 +0000
commit3081639bd119c6d281ef23139649b2e73ba62754 (patch)
treed7e99189f3a08391fc4fe148d18f45cb1f91f396 /httemplate/view
parentd33c75b60d9cb9f7155635dc2cd25307f06d947f (diff)
html invoices!
http://chris-linfoot.net/d6plinks/CWLT-5VZD4Y http://www.dsv.su.se/~jpalme/ietf/mhtml.html ftp://ftp.dsv.su.se/users/jpalme/draft-ietf-mhtml-info.txt http://mailformat.dan.info/headers/mime.html http://www.faqs.org/rfcs/rfc2392.html http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_content-type_multipart.asp (MIME is hard, let's go shopping!)
Diffstat (limited to 'httemplate/view')
-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