summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorivan <ivan>2009-10-07 23:44:26 +0000
committerivan <ivan>2009-10-07 23:44:26 +0000
commit06187016fd78ba41fb82846b9e8d461405f316b6 (patch)
tree1a9106fd1da791f2270ad1e502c5951495ab322d /conf
parentcb4443b58fb55f5c2fe28f031616e80922a0431c (diff)
naming follow-up notices from the event rather than creting a slew of separate templates, RT#5217
Diffstat (limited to 'conf')
-rw-r--r--conf/invoice_html2
-rw-r--r--conf/invoice_latex2
-rw-r--r--conf/invoice_template2
3 files changed, 3 insertions, 3 deletions
diff --git a/conf/invoice_html b/conf/invoice_html
index 026bc8b6b..7ee0fdc19 100644
--- a/conf/invoice_html
+++ b/conf/invoice_html
@@ -42,7 +42,7 @@
<tr>
<th>&nbsp;</th>
<th colspan=3 align="center">
- <FONT SIZE="+3">I</FONT><FONT SIZE="+2">NVOICE</FONT>
+ <FONT SIZE="+3"><%= $notice_name ? substr($notice_name, 0, 1) : 'I' %></FONT><FONT SIZE="+2"><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %></FONT>
</th>
<th>&nbsp;</th>
</tr>
diff --git a/conf/invoice_latex b/conf/invoice_latex
index cf684ef75..42a9f93cf 100644
--- a/conf/invoice_latex
+++ b/conf/invoice_latex
@@ -127,7 +127,7 @@
Invoice date & Invoice \#& Customer\#\\
\vspace{0.2cm}
\textbf{[@-- $date --@]} & \textbf{[@-- $invnum --@]} & \textbf{[@-- $custnum --@]} \\\hline
- \rule{0pt}{5ex} &~~ \huge{\textsc{Invoice}} & \\
+ \rule{0pt}{5ex} &~~ \huge{\textsc{[@-- $notice_name || 'Invoice' --@]}} & \\
\vspace{-0.2cm}
& & \\\hline
\end{tabular}
diff --git a/conf/invoice_template b/conf/invoice_template
index b33c4dda1..ebf8ef7d0 100644
--- a/conf/invoice_template
+++ b/conf/invoice_template
@@ -1,5 +1,5 @@
- Invoice
+ { $notice_name || 'Invoice'; }
{ substr("Page $page of $total_pages ", 0, 19); } { use Date::Format; time2str("%x", $date); } Invoice #{ $invnum; }