summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorivan <ivan>2009-10-08 01:15:06 +0000
committerivan <ivan>2009-10-08 01:15:06 +0000
commite3e8d316738336108b9b9af65d9adeb2ed085696 (patch)
tree103977fdf587423a6ac1eb03745ccb15174e86db /conf
parenteae101004801019c942e9dfccbea50a8165f5d6d (diff)
conf switches to turn on smaller notes and footer sections with stock templates, RT#5218
Diffstat (limited to 'conf')
-rw-r--r--conf/invoice_html10
-rw-r--r--conf/invoice_latex12
2 files changed, 17 insertions, 5 deletions
diff --git a/conf/invoice_html b/conf/invoice_html
index 7ee0fdc19..b7f7b9789 100644
--- a/conf/invoice_html
+++ b/conf/invoice_html
@@ -221,9 +221,15 @@
</table>
<br><br>
-<%= length($summary) ? '' : $notes %>
+<%= length($summary)
+ ? ''
+ : ( $smallernotes
+ ? '<FONT SIZE="-1">'.$notes.'</FONT>'
+ : $notes
+ )
+%>
<hr NOSHADE SIZE=2 COLOR="#000000">
- <p align="center"><%= $footer %>
+ <p align="center" <%= $smallerfooter ? 'STYLE="font-size:75%;"' : '' %>><%= $footer %>
</td></tr></table>
diff --git a/conf/invoice_latex b/conf/invoice_latex
index 42a9f93cf..ef6546f1a 100644
--- a/conf/invoice_latex
+++ b/conf/invoice_latex
@@ -82,12 +82,12 @@
$OUT .= $coupon;
}
'';
---@] \small{
+--@] [@-- $smallerfooter ? '\scriptsize{' : '\small{' --@]
[@-- $footer --@]
}[@-- $coupon ? '\vspace{\extracouponspace}' : '' --@]
}
{ % ... pages
- \small{
+ [@-- $smallerfooter ? '\scriptsize{' : '\small{' --@]
[@-- $smallfooter --@]
}
}
@@ -322,7 +322,13 @@ Terms: [@-- $terms --@]\\
--@]
\vfill
\begin{minipage}[t]{\textwidth}
- [@-- length($summary) ? '' : $notes --@]
+ [@-- length($summary)
+ ? ''
+ : ( $smallernotes
+ ? '\scriptsize{ '.$notes.' }'
+ : $notes
+ )
+ --@]
[@-- $coupon ? '\ifthenelse{\equal{\thepage}{1}}{\rule{0pt}{\extracouponspace}}{}' : '' --@]
\end{minipage}
\end{document}