[BACK]Return to invoice.tex.tt CVS log [TXT][DIR] Up to [local] / RT / Invoicing

Diff for /RT/Invoicing/invoice.tex.tt between version 1.9 and 1.18

version 1.9, 2011/03/22 01:46:41 version 1.18, 2020/08/02 02:05:31
Line 1 
Line 1 
 [% USE Latex -%]  [% USE Latex -%]
 [% FILTER latex("pdf") -%]  [% FILTER latex("pdf") -%]
 % $AFresh1: invoice.tex.tt,v 1.8 2011/03/21 23:21:16 andrew Exp $  % $AFresh1: invoice.tex.tt,v 1.17 2015/05/08 01:04:08 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}
Line 9 
Line 10 
   
 \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}}
   
 \lfoot{[% info.0 | latex_encode %]}  \lfoot{[% info.0 | latex_encode(except = "\\{}") %]}
 \cfoot{}  \cfoot{}
 \rfoot{[% info.1 | latex_encode %]}  \rfoot{[% info.1 | latex_encode(except = "\\{}") %]}
   
 \begin{document}  \begin{document}
 \thispagestyle{empty}  \thispagestyle{empty}
 \vspace*{-.75in}  \vspace*{-.75in}
 \begin{multicols}{2}  \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  \columnbreak
   
 \begin{flushright}  \begin{flushright}
   
 \begin{tabular}{ | p{3in} | }  \includegraphics{[% logo %]}
 \hline  
 LOGO \\  
 \hline  
 \end{tabular}  
   
 \hfill  \hfill
 \vfill  \vfill
Line 42 
Line 39 
 \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 %]
     Start & [% start | latex_encode %] \\      From & [% start.strftime('%B %d, %Y') | latex_encode %] \\
 [%- END %]  [%- END %]
 [%- IF end- %]  [%- IF end- %]
     End & [% end | latex_encode %] \\      Through & [% end.strftime('%B %d, %Y') | latex_encode %] \\
 [%- END %]  [%- END %]
 Invoice Total & [% total | format('$%.2f') | latex_encode %] \\  [% IF total -%]
     Invoice Total & [% total | format('$%.2f') | latex_encode %] \\
   [%- END %]
 [% IF past_due -%]  [% IF past_due -%]
   Past Due    & [% past_due | format('$%.2f') | latex_encode %] \\    Past Due    & [% past_due | format('$%.2f') | latex_encode %] \\
 [%- END %]  [%- END %]
   [% IF unpaid -%]
     Unpaid & [% unpaid | format('$%.2f') | latex_encode %] \\
   [%- END %]
 [%- IF total_due -%]  [%- IF total_due -%]
   Total Due   & [% total_due | format('$%.2f') | latex_encode %] \\    Total Due   & [% total_due | format('$%.2f') | latex_encode %] \\
 [%- END %]  [%- END %]
 \hline  \hline
 \multicolumn{2}{|c|}{[% info.0 | latex_encode %]} \\  [%- FOR line IN info %]
 \multicolumn{2}{|c|}{[% info.1 | latex_encode %]} \\  \multicolumn{2}{|c|}{[% line| latex_encode(except = "\\{}") %]} \\
   [% END -%]
 \hline  \hline
 \end{tabular}  \end{tabular}
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.18

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>