freeside/httemplate/view cust_bill.cgi,1.23,1.24
ivan
ivan at pouncequick.420.am
Sat May 14 09:27:31 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv3910/httemplate/view
Modified Files:
cust_bill.cgi
Log Message:
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!)
Index: cust_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill.cgi,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- cust_bill.cgi 21 Mar 2005 22:13:39 -0000 1.23
+++ cust_bill.cgi 14 May 2005 16:27:26 -0000 1.24
@@ -62,7 +62,7 @@
) {
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 @@
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
More information about the freeside-commits
mailing list