Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git] / templates / print / French / purchase_order.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage[frenchb]{babel}
4 \usepackage[utf8]{inputenc}
5 \usepackage{tabularx}
6 \setlength{\voffset}{0.5cm}
7 \setlength{\hoffset}{-2.0cm}
8 \setlength{\topmargin}{0cm}
9 \setlength{\headheight}{0.5cm}
10 \setlength{\headsep}{1cm}
11 \setlength{\topskip}{0pt}
12 \setlength{\oddsidemargin}{1.0cm}
13 \setlength{\evensidemargin}{1.0cm}
14 \setlength{\textwidth}{19.2cm}
15 \setlength{\textheight}{24.5cm}
16 \setlength{\footskip}{1cm}
17 \setlength{\parindent}{0pt}
18 \renewcommand{\baselinestretch}{1}
19 \begin{document}
20
21 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
22
23 \newsavebox{\hdr}
24 \sbox{\hdr}{
25   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
26
27   \parbox{\textwidth}{
28     \parbox[b]{12cm}{
29       <%company%>
30
31       <%address%>}\hfill
32     \begin{tabular}[b]{rr@{}}
33     Téléphone & <%tel%>\\
34     Télécopieur & <%fax%>
35     \end{tabular}
36
37     \rule[1.5ex]{\textwidth}{0.5pt}
38   }
39 }
40
41 \fontfamily{cmss}\fontshape{n}\selectfont
42
43 \markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
44
45 \pagestyle{myheadings}
46 %\thispagestyle{empty}     use this with letterhead paper
47
48 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
49
50 \vspace*{2cm}
51
52 <%name%>
53
54 <%street%>
55
56 <%zipcode%>
57
58 <%city%>
59
60 <%country%>
61
62 \vspace{3.5cm}
63
64 \textbf{B O N} \parbox{0.3cm}{\hfill} \textbf{D E} \parbox{0.3cm}{\hfill}
65 \textbf{C O M M A N D E}
66 \hfill
67 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
68   \textbf{Date de la commande} & <%orddate%> \\
69 <%if reqdate%>
70   \textbf{Livrable le} & <%reqdate%> \\
71 <%end reqdate%>
72   \textbf{Numéro de commande} & <%ordnumber%>
73 \end{tabular}
74
75 \vspace{1cm}
76
77 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
78   \textbf{Numéro} & \textbf{Description} & \textbf{Qté} &
79     \textbf{Unité} & \textbf{Prix} & \textbf{Montant} \\
80 <%foreach number%>
81   <%number%> & <%description%> & <%qty%> &
82     <%unit%> & <%sellprice%> & <%linetotal%> \\
83 <%end number%>
84 \end{tabular*}
85
86
87 \parbox{\textwidth}{
88 \rule{\textwidth}{2pt}
89
90 \vspace{0.2cm}
91
92 \hfill
93 \begin{tabularx}{7cm}{Xr@{}}
94   \textbf{Sous-total} & \textbf{<%subtotal%>} \\
95 <%foreach tax%>
96   <%taxdescription%> de <%taxbase%> & <%tax%>\\
97 <%end tax%>
98   \hline
99   \textbf{Total} & \textbf{<%ordtotal%>}\\
100 \end{tabularx}
101
102 \vspace{0.3cm}
103
104 \hfill
105   Tous les prix indiqués sont en \textbf{<%currency%>}.
106
107 \vspace{12pt}
108
109 <%if notes%>
110   <%notes%>
111 <%end if%>
112
113 }
114
115
116 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
117
118 %\footnotetext[1]{\tiny }
119
120 \end{document}