projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6011535
)
don't show empty Terms: on invoices
author
ivan
<ivan>
Tue, 16 Aug 2011 00:37:00 +0000
(
00:37
+0000)
committer
ivan
<ivan>
Tue, 16 Aug 2011 00:37:00 +0000
(
00:37
+0000)
conf/invoice_html
patch
|
blob
|
history
conf/invoice_latex
patch
|
blob
|
history
diff --git
a/conf/invoice_html
b/conf/invoice_html
index
fc553d5
..
7a8b859
100644
(file)
--- a/
conf/invoice_html
+++ b/
conf/invoice_html
@@
-86,7
+86,7
@@
$OUT .= qq! <img src="cust_bill-barcode.cgi?invnum=$invnum;template=$template"><br> !;
}
%>
-
Terms: <%= $terms
%><BR>
+
<%= $terms ? "Terms: $terms" : ''
%><BR>
<%= $po_line %>
</td>
</tr>
diff --git
a/conf/invoice_latex
b/conf/invoice_latex
index
97401f9
..
27ca803
100644
(file)
--- a/
conf/invoice_latex
+++ b/
conf/invoice_latex
@@
-229,7
+229,7
@@
}
\r
--@]
\r
\begin{flushright}
\r
-
Terms: [@-- $terms
--@]\\
\r
+
[@-- $terms ? "Terms: $terms" : ''
--@]\\
\r
[@-- $po_line --@]\\
\r
\end{flushright}
\r
\end{minipage}}
\r