Lieferadressen, gelöschte aber ausgewählte weiterhin einblenden.
[kivitendo-erp.git] / templates / print / Service / invoice.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[utf8]{inputenc}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-2.0cm}
7 \setlength{\topmargin}{0cm}
8 \setlength{\headheight}{0.5cm}
9 \setlength{\headsep}{1cm}
10 \setlength{\topskip}{0pt}
11 \setlength{\oddsidemargin}{1.0cm}
12 \setlength{\evensidemargin}{1.0cm}
13 \setlength{\textwidth}{19.2cm}
14 \setlength{\textheight}{24.5cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21
22 \newsavebox{\hdr}
23 \sbox{\hdr}{
24   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
25
26   \parbox{\textwidth}{
27     \parbox[b]{12cm}{
28       <%company%>
29
30       <%address%>}\hfill
31     \begin{tabular}[b]{rr@{}}
32     Telephone & <%tel%>\\
33     Facsimile & <%fax%>
34     \end{tabular}
35
36     \rule[1.5ex]{\textwidth}{0.5pt}
37   }
38 }
39
40 \fontfamily{cmss}\fontshape{n}\selectfont
41
42 \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
48
49 \vspace*{2cm}
50
51 <%name%>
52
53 <%street%>
54
55 <%zipcode%>
56
57 <%city%>
58
59 <%country%>
60
61 \vspace{3.5cm}
62
63 \textbf{I N V O I C E}
64 \hfill
65 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
66   \textbf{Date} & <%invdate%> \\
67   \textbf{Number} & <%invnumber%> \\
68   \textbf{Customer} & <%customer_id%>
69 \end{tabular}
70
71 \vspace{1cm}
72
73 \begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rlrr@{}}
74   \textbf{Description} & \textbf{Qt'y} &
75     \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
76 <%foreach number%>
77   <%description%> & <%qty%> &
78     <%unit%> & <%sellprice%> & <%linetotal%> \\
79 <%end number%>
80 \end{tabular*}
81
82
83 \parbox{\textwidth}{
84 \rule{\textwidth}{2pt}
85
86 \vspace{0.2cm}
87
88 \hfill
89 \begin{tabularx}{7cm}{Xr@{}}
90   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
91 <%foreach tax%>
92   <%taxdescription%> on <%taxbase%> & <%tax%> \\
93 <%end tax%>
94 <%if paid%>
95   \textbf{Paid} & - <%paid%> \\
96 <%end paid%>
97   \hline
98   \textbf{Balance Owing} & \textbf{<%total%>} \\
99
100 \end{tabularx}
101
102 \vspace{0.3cm}
103
104 \hfill
105   All prices in \textbf{<%currency%>} funds.
106
107 \vspace{12pt}
108
109 <%if notes%>
110   <%notes%>
111 <%end if%>
112
113 }
114
115 \vfill
116 \centerline{\textbf{Thank You for your valued business!}}
117
118 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
119
120 \footnotetext[1]{\tiny
121 Payment due NET <%terms%> Days from date of Invoice. Interest on overdue
122 amounts will acrue at the rate of 1.5\% per month starting <%duedate%>
123 until paid in full.
124 }
125
126 \end{document}
127
128