=================================================================== RCS file: /cvs/RT/Invoicing/invoice.tex.tt,v retrieving revision 1.9 retrieving revision 1.15 diff -u -r1.9 -r1.15 --- RT/Invoicing/invoice.tex.tt 2011/03/22 01:46:41 1.9 +++ RT/Invoicing/invoice.tex.tt 2012/01/27 04:13:45 1.15 @@ -1,7 +1,8 @@ [% USE Latex -%] [% FILTER latex("pdf") -%] -% $AFresh1: invoice.tex.tt,v 1.8 2011/03/21 23:21:16 andrew Exp $ +% $AFresh1: invoice.tex.tt,v 1.14 2011/12/31 02:14:32 andrew Exp $ \documentclass[oneside]{report} +\usepackage{graphicx} \usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} \usepackage{multicol} \usepackage{fancyhdr} @@ -9,31 +10,27 @@ \pagestyle{fancy} -\lhead{[% from.name | latex_encode %]} +\lhead{[% organization | latex_encode %]} \chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}} \rhead{Page {\thepage}} -\lfoot{[% info.0 | latex_encode %]} +\lfoot{[% info.0 | latex_encode(except = "\\{}") %]} \cfoot{} -\rfoot{[% info.1 | latex_encode %]} +\rfoot{[% info.1 | latex_encode(except = "\\{}") %]} \begin{document} \thispagestyle{empty} \vspace*{-.75in} \begin{multicols}{2} -\parbox[t][1.625in]{\linewidth}{\large [% from | latex_encode %] } +\parbox[t][1.625in]{\linewidth}{\large [% from | latex_encode(except = "\\{}") %] } -\parbox[t][1.5in]{\linewidth}{\Large [% to | latex_encode %] } +\parbox[t][1.5in]{\linewidth}{\Large [% to | latex_encode(except = "\\{}") %] } \columnbreak \begin{flushright} -\begin{tabular}{ | p{3in} | } -\hline -LOGO \\ -\hline -\end{tabular} +\includegraphics{[% logo %]} \hfill \vfill @@ -42,23 +39,28 @@ \hline Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\ %Page & {\thepage} \\ -Invoice Date & \today \\ +[%- IF invdate %] + Invoice Date & [% invdate.strftime('%B %d, %Y') | latex_encode %] \\ +[%- END %] [%- IF start %] - Start & [% start | latex_encode %] \\ + From & [% start.strftime('%B %d, %Y') | latex_encode %] \\ [%- END %] [%- IF end- %] - End & [% end | latex_encode %] \\ + Through & [% end.strftime('%B %d, %Y') | latex_encode %] \\ [%- END %] Invoice Total & [% total | format('$%.2f') | latex_encode %] \\ [% IF past_due -%] Past Due & [% past_due | format('$%.2f') | latex_encode %] \\ [%- END %] +[% IF unpaid -%] + Unpaid & [% unpaid | format('$%.2f') | latex_encode %] \\ +[%- END %] [%- IF total_due -%] Total Due & [% total_due | format('$%.2f') | latex_encode %] \\ [%- END %] \hline -\multicolumn{2}{|c|}{[% info.0 | latex_encode %]} \\ -\multicolumn{2}{|c|}{[% info.1 | latex_encode %]} \\ +\multicolumn{2}{|c|}{[% info.0 | latex_encode(except = "\\{}") %]} \\ +\multicolumn{2}{|c|}{[% info.1 | latex_encode(except = "\\{}") %]} \\ \hline \end{tabular}