version 1.11, 2011/03/22 05:48:19 |
version 1.14, 2011/12/31 02:14:32 |
|
|
[% USE Latex -%] |
[% USE Latex -%] |
[% FILTER latex("pdf") -%] |
[% FILTER latex("pdf") -%] |
% $AFresh1: invoice.tex.tt,v 1.10 2011/03/22 03:21:30 andrew Exp $ |
% $AFresh1: invoice.tex.tt,v 1.13 2011/04/08 17:10:28 andrew Exp $ |
\documentclass[oneside]{report} |
\documentclass[oneside]{report} |
|
\usepackage{graphicx} |
\usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} |
\usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} |
\usepackage{multicol} |
\usepackage{multicol} |
\usepackage{fancyhdr} |
\usepackage{fancyhdr} |
|
|
|
|
\pagestyle{fancy} |
\pagestyle{fancy} |
|
|
\lhead{[% from.name | latex_encode %]} |
\lhead{[% organization | latex_encode %]} |
\chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}} |
\chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}} |
\rhead{Page {\thepage}} |
\rhead{Page {\thepage}} |
|
|
|
|
|
|
\begin{flushright} |
\begin{flushright} |
|
|
\begin{tabular}{ | p{3in} | } |
\includegraphics{[% logo %]} |
\hline |
|
LOGO \\ |
|
\hline |
|
\end{tabular} |
|
|
|
\hfill |
\hfill |
\vfill |
\vfill |
|
|
\hline |
\hline |
Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\ |
Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\ |
%Page & {\thepage} \\ |
%Page & {\thepage} \\ |
Invoice Date & \today \\ |
[%- IF invdate %] |
|
Invoice Date & [% invdate.strftime('%B %d, %Y') | latex_encode %] \\ |
|
[%- END %] |
[%- IF start %] |
[%- IF start %] |
From & [% start | latex_encode %] \\ |
From & [% start.strftime('%B %d, %Y') | latex_encode %] \\ |
[%- END %] |
[%- END %] |
[%- IF end- %] |
[%- IF end- %] |
Through & [% end | latex_encode %] \\ |
Through & [% end.strftime('%B %d, %Y') | latex_encode %] \\ |
[%- END %] |
[%- END %] |
Invoice Total & [% total | format('$%.2f') | latex_encode %] \\ |
Invoice Total & [% total | format('$%.2f') | latex_encode %] \\ |
[% IF past_due -%] |
[% IF past_due -%] |