From 6a9d67e128bbcd6a32ef806c8bed10faab535ab5 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 11 Feb 2014 23:25:30 -0800 Subject: add ;plaintext=1 to view a plaintext invoice for debugging --- httemplate/view/cust_bill.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 4822ab718..344030404 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -135,10 +135,10 @@ function change_invoice_mode(obj) { <% $br ? '

' : '' %> -% if ( $conf->exists('invoice_html') ) { +% if ( $conf->exists('invoice_html') && ! $cgi->param('plaintext') ) { <% join('', $cust_bill->print_html(\%opt) ) %> % } else { -
<% join('', $cust_bill->print_text(\%opt) ) %>
+
<% join('', $cust_bill->print_text(\%opt) ) |h %>
% } <& /elements/footer.html &> -- cgit v1.2.1