diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-02-11 23:25:31 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-02-11 23:25:31 -0800 |
commit | ab0e2bb4316412fa1a46614f6ec5103c5ea8383b (patch) | |
tree | aab45b440e907c57f3595813849cfd5a1d0e5f0a /httemplate/view/cust_bill.cgi | |
parent | 3ce79089dc0cba6ccf5b88174a340811e886e0a1 (diff) |
add ;plaintext=1 to view a plaintext invoice for debugging
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
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 ? '<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 &> |