From a859e1e18ebe73086ab5792a2eda05929ad19873 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 16 Aug 2011 00:37:00 +0000 Subject: [PATCH] don't show empty Terms: on invoices --- conf/invoice_html | 2 +- conf/invoice_latex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/invoice_html b/conf/invoice_html index fc553d5d5..7a8b8594e 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -86,7 +86,7 @@ $OUT .= qq!
!; } %> - Terms: <%= $terms %>
+ <%= $terms ? "Terms: $terms" : '' %>
<%= $po_line %> diff --git a/conf/invoice_latex b/conf/invoice_latex index 97401f9e1..27ca80305 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -229,7 +229,7 @@ } --@] \begin{flushright} -Terms: [@-- $terms --@]\\ +[@-- $terms ? "Terms: $terms" : '' --@]\\ [@-- $po_line --@]\\ \end{flushright} \end{minipage}} -- 2.11.0