import sql-ledger 2.4.4
[freeside.git] / sql-ledger / templates / Default-purchase_order.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage{graphicx}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-1.9cm}
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.7cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
22
23 \pagestyle{myheadings}
24 \thispagestyle{empty}
25
26 \vspace*{-1.3cm}
27
28 \parbox{\textwidth}{
29   \parbox[b]{.42\textwidth}{
30     <%company%>
31     
32     <%address%>
33   }
34   \parbox[b]{.2\textwidth}{
35     \includegraphics[scale=0.3]{sql-ledger}
36   }\hfill
37   \begin{tabular}[b]{rr@{}}
38   Telephone & <%tel%>\\
39   Facsimile & <%fax%>
40   \end{tabular}
41
42   \rule[1.5ex]{\textwidth}{0.5pt}
43 }
44   
45
46 <%pagebreak 90 27 48%>
47 \end{tabularx}
48
49   \rule{\textwidth}{2pt}
50   
51   \hfill
52   \begin{tabularx}{7cm}{Xr@{}}
53   Subtotal & <%sumcarriedforward%> \\
54   \end{tabularx}
55
56 \newpage
57
58 \markright{<%company%>\hfill <%ordnumber%>}
59
60 \vspace*{-12pt}
61
62 \begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
63   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
64     \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
65   & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
66 <%end pagebreak%>
67
68
69 \vspace*{0.5cm}
70
71 \parbox[t]{1cm}{\hfill}
72 \parbox[t]{.45\textwidth}{
73 \textbf{To}
74 \vspace{0.5cm}
75   
76 <%name%>
77
78 <%address1%>
79
80 <%address2%>
81
82 <%city%> <%state%> <%zipcode%>
83
84 <%country%>
85
86 \vspace{0.3cm}
87
88 <%if contact%>
89 Attn: <%contact%>
90 \vspace{0.3cm}
91 <%end contact%>
92
93 <%if vendorphone%>
94 Tel: <%vendorphone%>
95 <%end vendorphone%>
96
97 <%if vendorfax%>
98 Fax: <%vendorfax%>
99 <%end vendorfax%>
100
101 <%email%>
102 }
103 \parbox[t]{.45\textwidth}{
104 \textbf{Ship To}
105 \vspace{0.5cm}
106
107 <%shiptoname%>
108
109 <%shiptoaddress1%>
110
111 <%shiptoaddress2%>
112
113 <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
114
115 <%shiptocountry%>
116
117 \vspace{0.3cm}
118
119 <%if shiptocontact%>
120 Attn: <%shiptocontact%>
121 \vspace{0.3cm}
122 <%end shiptocontact%>
123
124 <%if shiptophone%>
125 Tel: <%shiptophone%>
126 <%end shiptophone%>
127
128 <%if shiptofax%>
129 Fax: <%shiptofax%>
130 <%end shiptofax%>
131
132 <%shiptoemail%>
133 }
134 \hfill
135
136 \vspace{1cm}
137
138 \textbf{P U R C H A S E} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
139 \hfill
140
141 \vspace{1cm}
142 \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
143   \textbf{Order \#} & \textbf{Date} & \textbf{Required by} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
144   \hline
145   <%ordnumber%> & <%orddate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
146   \hline
147 \end{tabularx}
148
149 \vspace{1cm}
150
151 \begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
152   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
153     \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
154 <%foreach number%>
155   <%number%> & <%description%> & <%qty%> &
156     <%unit%> & <%sellprice%> & <%linetotal%> \\
157 <%end number%>
158 \end{tabularx}
159
160
161 \parbox{\textwidth}{
162 \rule{\textwidth}{2pt}
163
164 \vspace{0.2cm}
165
166 \hfill
167 \begin{tabularx}{7cm}{Xr@{}}
168   Subtotal & <%subtotal%> \\
169 <%foreach tax%>
170   <%taxdescription%> on <%taxbase%> & <%tax%>\\
171 <%end tax%>
172   \hline
173   Total & <%ordtotal%>\\
174 \end{tabularx}
175
176 \vspace{0.3cm}
177
178 \hfill
179   All prices in \textbf{<%currency%>}.
180
181 \vspace{12pt}
182
183 <%if notes%>
184   <%notes%>
185 <%end if%>
186
187 }
188
189
190 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
191
192 %\footnotetext[1]{\tiny }
193
194 \end{document}
195