[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 and 1.2

version 1.1, 2011/03/19 23:27:16 version 1.2, 2011/03/20 02:34:42
Line 1 
Line 1 
 [% USE Latex -%]  [% USE Latex -%]
 [% FILTER latex("pdf") -%]  [% FILTER latex("pdf") -%]
 % $AFresh1$  % $AFresh1: invoice.tex.tt,v 1.1.1.1 2011/03/19 22:27:16 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{[% info1 | latex_encode %]}
 \cfoot{}  \cfoot{}
 \rfoot{[% info2 %]}  \rfoot{[% info2 | latex_encode %]}
   
 \begin{document}  \begin{document}
 \thispagestyle{empty}  \thispagestyle{empty}
Line 23 
Line 23 
 \begin{multicols}{2}  \begin{multicols}{2}
   
 {\large  {\large
 [% from.name %]  [% from.name | latex_encode %]
   
 [% IF from.attn -%]  [% IF from.attn -%]
     [% from.attn %]      [% from.attn | latex_encode %]
   
 [% END -%]  [% END -%]
 [% from.addr1 %]  [% from.addr1 | latex_encode %]
   
 [% IF from.addr2 -%]  [% IF from.addr2 -%]
     [% from.addr2 %]      [% from.addr2 | latex_encode %]
   
 [% END -%]  [% END -%]
 [% from.city %], [% from.state %] \ [% from.zip %]  [% from.city | latex_encode %], [% from.state | latex_encode %] \ [% from.zip | latex_encode %]
 }  }
   
 \vspace{.75in}  \vspace{.75in}
   
 {\Large  {\Large
 [% to.name %]  [% to.name | latex_encode %]
   
 [% IF to.attn -%]  [% IF to.attn -%]
     [% to.attn %]      [% to.attn | latex_encode %]
   
 [% END -%]  [% END -%]
 [% to.addr1 %]  [% to.addr1 | latex_encode %]
   
 [% IF to.addr2 -%]  [% IF to.addr2 -%]
     [% to.addr2 %]      [% to.addr2 | latex_encode %]
   
 [% END -%]  [% END -%]
 [% to.city %], [% to.state %] \ [% to.zip %]  [% to.city | latex_encode %], [% to.state | latex_encode %] \ [% to.zip | latex_encode %]
 }  }
   
 \columnbreak  \columnbreak
Line 71 
Line 71 
   
 \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 \\  Invoice Date & \today \\
 Page         & {\thepage} \\  Page         & {\thepage} \\
 \hline  \hline
 \multicolumn{2}{|c|}{[% info1 %]} \\  \multicolumn{2}{|c|}{[% info1 | latex_encode %]} \\
 \multicolumn{2}{|c|}{[% info2 %]} \\  \multicolumn{2}{|c|}{[% info2 | latex_encode %]} \\
 \hline  \hline
 \end{tabular}  \end{tabular}
   
Line 86 
Line 86 
   
 \begin{invoice}{USD}{0}  \begin{invoice}{USD}{0}
  [%- FOR p IN projects %]   [%- FOR p IN projects %]
  \ProjectTitle{[% p.title %]}   \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 %]
       {\small [% 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 %]
       {\small [% e.detail | latex_encode %]}
      [% END -%]
   [%- END -%]    [%- END -%]
   [%- FOR d IN p.discounts %]    [%- FOR d IN p.discounts %]
    \Discount{[% d.contents %]}{[% d.amount %]}     \Discount{[% d.contents | latex_encode %]}{[% d.amount | latex_encode %]}
      [%- IF d.detail %]
       {\small [% d.detail | latex_encode %]}
      [% END -%]
   [%- END -%]    [%- END -%]
  [%- END %]   [%- END %]
 \end{invoice}  \end{invoice}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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