add ;plaintext=1 to view a plaintext invoice for debugging
authorIvan Kohler <ivan@freeside.biz>
Wed, 12 Feb 2014 07:25:30 +0000 (23:25 -0800)
committerIvan Kohler <ivan@freeside.biz>
Wed, 12 Feb 2014 07:25:30 +0000 (23:25 -0800)
httemplate/elements/freeside.css
httemplate/view/cust_bill.cgi

index 82eb9b5..3933e9d 100644 (file)
@@ -3,6 +3,10 @@
   /* font-family: Verdana, Arial, Helvetica, sans-serif; */
 }
 
+pre {
+  font-family: monospace;
+}
+
 A:link IMG, A:visited { border-style: none }
 /* A:focus {text-decoration: underline } */
 
index 4822ab7..3440304 100755 (executable)
@@ -135,10 +135,10 @@ function change_invoice_mode(obj) {
 
 <% $br ? '<BR><BR>' : '' %>
 
-% if ( $conf->exists('invoice_html') ) { 
+% if ( $conf->exists('invoice_html') && ! $cgi->param('plaintext') ) { 
   <% join('', $cust_bill->print_html(\%opt) ) %>
 % } else { 
-  <PRE><% join('', $cust_bill->print_text(\%opt) ) %></PRE>
+  <PRE><% join('', $cust_bill->print_text(\%opt) ) |h %></PRE>
 % } 
 
 <& /elements/footer.html &>