[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.1.1.1 and 1.11

version 1.1.1.1, 2011/03/19 23:27:16 version 1.11, 2011/03/22 05:48:19
Line 1 
Line 1 
 [% USE Latex -%]  [% USE Latex -%]
 [% FILTER latex("pdf") -%]  [% FILTER latex("pdf") -%]
 % $AFresh1$  % $AFresh1: invoice.tex.tt,v 1.10 2011/03/22 03:21:30 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}
Line 9 
Line 9 
   
 \pagestyle{fancy}  \pagestyle{fancy}
   
 \lhead{[% from.name %]}  \lhead{[% from.name | latex_encode %]}
 \chead{Invoice \#\textbf{[% id | format('%06d') %]}}  \chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}}
 \rhead{Page {\thepage}}  \rhead{Page {\thepage}}
   
 \lfoot{[% info1 %]}  \lfoot{[% info.0 | latex_encode(except = "\\{}") %]}
 \cfoot{}  \cfoot{}
 \rfoot{[% info2 %]}  \rfoot{[% info.1 | latex_encode(except = "\\{}") %]}
   
 \begin{document}  \begin{document}
 \thispagestyle{empty}  \thispagestyle{empty}
   \vspace*{-.75in}
 \begin{multicols}{2}  \begin{multicols}{2}
   \parbox[t][1.625in]{\linewidth}{\large [% from | latex_encode(except = "\\{}") %] }
   
 {\large  \parbox[t][1.5in]{\linewidth}{\Large [% to | latex_encode(except = "\\{}") %] }
 [% from.name %]  
   
 [% IF from.attn -%]  
     [% from.attn %]  
   
 [% END -%]  
 [% from.addr1 %]  
   
 [% IF from.addr2 -%]  
     [% from.addr2 %]  
   
 [% END -%]  
 [% from.city %], [% from.state %] \ [% from.zip %]  
 }  
   
 \vspace{.75in}  
   
 {\Large  
 [% to.name %]  
   
 [% IF to.attn -%]  
     [% to.attn %]  
   
 [% END -%]  
 [% to.addr1 %]  
   
 [% IF to.addr2 -%]  
     [% to.addr2 %]  
   
 [% END -%]  
 [% to.city %], [% to.state %] \ [% to.zip %]  
 }  
   
 \columnbreak  \columnbreak
   
 \begin{flushright}  \begin{flushright}
Line 71 
Line 40 
   
 \begin{tabular}{ | r l | }  \begin{tabular}{ | r l | }
 \hline  \hline
 Invoice No.  & \textbf{[% id | format('%06d') %]} \\  Invoice No.   & \textbf{[% id | format('%06d') | latex_encode %]} \\
 Invoice Date & \today \\  %Page          & {\thepage} \\
 Page         & {\thepage} \\  Invoice Date  & \today \\
   [%- IF start %]
       From & [% start | latex_encode %] \\
   [%- END %]
   [%- IF end- %]
       Through & [% end | latex_encode %] \\
   [%- END %]
   Invoice Total & [% total | format('$%.2f') | latex_encode %] \\
   [% IF past_due -%]
     Past Due    & [% past_due | format('$%.2f') | latex_encode %] \\
   [%- END %]
   [%- IF total_due -%]
     Total Due   & [% total_due | format('$%.2f') | latex_encode %] \\
   [%- END %]
 \hline  \hline
 \multicolumn{2}{|c|}{[% info1 %]} \\  \multicolumn{2}{|c|}{[% info.0 | latex_encode(except = "\\{}") %]} \\
 \multicolumn{2}{|c|}{[% info2 %]} \\  \multicolumn{2}{|c|}{[% info.1 | latex_encode(except = "\\{}") %]} \\
 \hline  \hline
 \end{tabular}  \end{tabular}
   
Line 85 
Line 67 
 \end{multicols}  \end{multicols}
   
 \begin{invoice}{USD}{0}  \begin{invoice}{USD}{0}
  [%- FOR p IN projects %]  
  \ProjectTitle{[% p.title %]}  [%- FOR p IN projects %]
    \ProjectTitle{[% p.title | latex_encode %]}%
     [%- IF p.detail %]
      \\\multicolumn{5}{l}{[% p.detail | latex_encode %]}\\%
     [% END -%]
   
   [%- FOR f IN p.fees %]    [%- FOR f IN p.fees %]
    \Fee{[% f.contents %]}{[% f.rate %]}{[% f.count %]}     \Fee{[% f.contents | latex_encode %]}{[% f.rate | latex_encode %]}{[% f.count | latex_encode %]}%
      [%- IF f.detail %]
       \multicolumn{5}{l}{\small \textbullet \ [% f.detail | latex_encode %]}\\%
      [% END -%]
   [%- END -%]    [%- END -%]
   
   [%- FOR e IN p.expenses %]    [%- FOR e IN p.expenses %]
    \EBC{[% e.contents %]}{[% e.amount %]}     \EBC{[% e.contents | latex_encode %]}{[% e.amount | latex_encode %]}%
      [%- IF e.detail %]
       \multicolumn{5}{l}{\small \textbullet \ [% e.detail | latex_encode %]}\\%
      [% END -%]
   [%- END -%]    [%- END -%]
   [%- FOR d IN p.discounts %]  
    \Discount{[% d.contents %]}{[% d.amount %]}  [%- END # projects %]
   [%- END -%]  
  [%- END %]  [%- IF discount %]
     \\\Discount{[% discount.contents | latex_encode %]}{[% discount.amount | latex_encode %]}\\%
   [%- END %]
   
 \end{invoice}  \end{invoice}
   
 \end{document}  \end{document}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.11

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