so Search.tsf and Search.rdf work
[freeside.git] / sql-ledger / templates / Default-work_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.5em]{\textwidth}{0.5pt}
43 }
44
45
46 <%pagebreak 90 27 48%>
47 \end{tabularx}
48
49 \newpage
50
51 \markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
52
53 \vspace*{-12pt}
54
55 \begin{tabularx}{\textwidth}{@{}rlXrll@{}}
56   \textbf{No.} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
57   & \textbf{Serial Number} \\
58 <%end pagebreak%>
59
60
61 \vspace*{0.5cm}
62
63 \parbox[t]{1cm}{\hfill}
64 \parbox[t]{.45\textwidth}{
65 \textbf{To}
66 \vspace{0.7cm}
67   
68 <%name%>
69
70 <%address1%>
71
72 <%address2%>
73
74 <%city%> <%state%> <%zipcode%>
75
76 <%country%>
77
78 \vspace{0.3cm}
79
80 <%if contact%>
81 <%contact%>
82 \vspace{0.2cm}
83 <%end contact%>
84
85 <%if customerphone%>
86 Tel: <%customerphone%>
87 <%end customerphone%>
88
89 <%if customerfax%>
90 Fax: <%customerfax%>
91 <%end customerfax%>
92
93 <%email%>
94 }
95 \parbox[t]{.45\textwidth}{
96 \textbf{Ship To}
97 \vspace{0.7cm}
98
99 <%shiptoname%>
100
101 <%shiptoaddress1%>
102
103 <%shiptoaddress2%>
104
105 <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
106
107 <%shiptocountry%>
108
109 \vspace{0.3cm}
110
111 <%if shiptocontact%>
112 <%shiptocontact%>
113 \vspace{0.2cm}
114 <%end shiptocontact%>
115
116 <%if shiptophone%>
117 Tel: <%shiptophone%>
118 <%end shiptophone%>
119
120 <%if shiptofax%>
121 Fax: <%shiptofax%>
122 <%end shiptofax%>
123
124 <%shiptoemail%>
125 }
126 \hfill
127
128 \vspace{1cm}
129
130 \textbf{W O R K} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
131 \hfill
132
133 \vspace{1cm}
134
135 \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
136   \textbf{Order \#} & \textbf{Order Date} & \textbf{Required by} & \textbf{Salesperson} & \textbf{Shipping Point} & \textbf{Ship Via} \\ [0.5em]
137   \hline
138   <%ordnumber%> & <%orddate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
139   \hline
140 \end{tabularx}
141   
142 \vspace{1cm}
143
144 \begin{tabularx}{\textwidth}{@{}rlXrll@{}}
145   \textbf{No.} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
146   & \textbf{Serial Number} \\
147 <%foreach number%>
148   <%runningnumber%> & <%number%> & <%description%> & <%qty%> &
149   <%unit%> & <%serialnumber%> \\
150 <%end number%>
151 \end{tabularx}
152
153
154 \parbox{\textwidth}{
155 \rule{\textwidth}{2pt}
156
157 \vspace{12pt}
158
159 <%if notes%>
160   <%notes%>
161 <%end if%>
162
163 }
164
165 \vfill
166
167 \vspace{1cm}
168
169 \rule{\textwidth}{0.5pt}
170
171 \end{document}
172
173
174
175
176
177