version 1.3, 2011/03/20 06:20:11 |
version 1.4, 2011/03/21 04:19:25 |
|
|
[% USE Latex -%] |
[% USE Latex -%] |
[% FILTER latex("pdf") -%] |
[% FILTER latex("pdf") -%] |
% $AFresh1: invoice.tex.tt,v 1.1.1.1 2011/03/19 22:27:16 andrew Exp $ |
% $AFresh1: invoice.tex.tt,v 1.3 2011/03/20 05:20:11 andrew Exp $ |
\documentclass[oneside]{report} |
\documentclass[oneside]{report} |
\usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} |
\usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} |
\usepackage{multicol} |
\usepackage{multicol} |
|
|
\chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}} |
\chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}} |
\rhead{Page {\thepage}} |
\rhead{Page {\thepage}} |
|
|
\lfoot{[% info1 | latex_encode %]} |
\lfoot{[% info.0 | latex_encode %]} |
\cfoot{} |
\cfoot{} |
\rfoot{[% info2 | latex_encode %]} |
\rfoot{[% info.1 | latex_encode %]} |
|
|
\begin{document} |
\begin{document} |
\thispagestyle{empty} |
\thispagestyle{empty} |
|
|
\begin{tabular}{ | r l | } |
\begin{tabular}{ | r l | } |
\hline |
\hline |
Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\ |
Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\ |
|
%Page & {\thepage} \\ |
Invoice Date & \today \\ |
Invoice Date & \today \\ |
|
[%- IF start %] |
|
Start & [% start | latex_encode %] \\ |
|
[%- END %] |
|
[%- IF end- %] |
|
End & [% end | latex_encode %] \\ |
|
[%- END %] |
Invoice Total & [% total | format('%.2f') | latex_encode %] \\ |
Invoice Total & [% total | format('%.2f') | latex_encode %] \\ |
[% IF past_due -%] |
[% IF past_due -%] |
Past Due & [% past_due | format('%.2f') | latex_encode %] \\ |
Past Due & [% past_due | format('%.2f') | latex_encode %] \\ |
|
|
[%- IF total_due -%] |
[%- IF total_due -%] |
Total Due & [% total_due | format('%.2f') | latex_encode %] \\ |
Total Due & [% total_due | format('%.2f') | latex_encode %] \\ |
[%- END %] |
[%- END %] |
Page & {\thepage} \\ |
|
\hline |
\hline |
\multicolumn{2}{|c|}{[% info1 | latex_encode %]} \\ |
\multicolumn{2}{|c|}{[% info.0 | latex_encode %]} \\ |
\multicolumn{2}{|c|}{[% info2 | latex_encode %]} \\ |
\multicolumn{2}{|c|}{[% info.1 | latex_encode %]} \\ |
\hline |
\hline |
\end{tabular} |
\end{tabular} |
|
|