This commit was generated by cvs2svn to compensate for changes in r3883,
[freeside.git] / sql-ledger / templates / French-purchase_order.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage[frenchb]{babel}
4 \usepackage[latin1]{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 <%pagebreak 90 27 37%>
49 \end{tabular*}
50
51   \rule{\textwidth}{2pt}
52   
53   \hfill
54   \begin{tabularx}{7cm}{Xr@{}}
55   \textbf{Sous-total} & \textbf{<%sumcarriedforward%>} \\
56   \end{tabularx}
57
58 \newpage
59
60 \markright{<%company%>\hfill <%ordnumber%>}
61
62 \vspace*{-12pt}
63
64 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
65   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
66     \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
67   & reporté de la page <%lastpage%> & & & & <%sumcarriedforward%> \\
68 <%end pagebreak%>
69
70
71 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
72
73 \vspace*{2cm}
74
75 <%name%>
76
77 <%address1%>
78
79 <%if address2%>
80 <%address2%>
81 <%end address2%>
82
83 <%city%> <%state%> <%zipcode%>
84
85 <%if country%>
86 <%country%>
87 <%end country%>
88
89 \vspace{3.5cm}
90
91 \textbf{B O N} \parbox{0.3cm}{\hfill} \textbf{D E} \parbox{0.3cm}{\hfill}
92 \textbf{C O M M A N D E}
93 \hfill
94 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
95   \textbf{Date de la commande} & <%orddate%> \\
96 <%if reqdate%>
97   \textbf{Livrable le} & <%reqdate%> \\
98 <%end reqdate%>
99   \textbf{Numéro de commande} & <%ordnumber%>
100 \end{tabular}
101
102 \vspace{1cm}
103
104 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
105   \textbf{Numéro} & \textbf{Description} & \textbf{Qté} &
106     \textbf{Unité} & \textbf{Prix} & \textbf{Montant} \\
107 <%foreach number%>
108   <%number%> & <%description%> & <%qty%> &
109     <%unit%> & <%sellprice%> & <%linetotal%> \\
110 <%end number%>
111 \end{tabular*}
112
113
114 \parbox{\textwidth}{
115 \rule{\textwidth}{2pt}
116
117 \vspace{0.2cm}
118
119 \hfill
120 \begin{tabularx}{7cm}{Xr@{}}
121   \textbf{Sous-total} & \textbf{<%subtotal%>} \\
122 <%foreach tax%>
123   <%taxdescription%> de <%taxbase%> & <%tax%>\\
124 <%end tax%>
125   \hline
126   \textbf{Total} & \textbf{<%ordtotal%>}\\
127 \end{tabularx}
128
129 \vspace{0.3cm}
130
131 \hfill
132   Tous les prix indiqués sont en \textbf{<%currency%>}.
133
134 \vspace{12pt}
135
136 <%if notes%>
137   <%notes%>
138 <%end if%>
139
140 }
141
142
143 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
144
145 %\footnotetext[1]{\tiny }
146
147 \end{document}