1\documentclass[twoside]{scrartcl}
2\usepackage[frame]{xy}
3\usepackage{tabularx}
4\usepackage[latin1]{inputenc}
5\usepackage{graphicx}
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.7cm}
16\setlength{\footskip}{1cm}
17\setlength{\parindent}{0pt}
18\renewcommand{\baselinestretch}{1}
19
20\begin{document}
21
22\pagestyle{myheadings}
23\thispagestyle{empty}
24
25\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
26
27\vspace*{-1.3cm}
28
29\parbox{\textwidth}{
30  \parbox[b]{.42\textwidth}{%
31    <?lsmb company ?>
32
33    <?lsmb address ?>
34  }
35  \parbox[b]{.2\textwidth}{
36    \includegraphics[scale=0.3]{ledger-smb}
37  }\hfill
38  \begin{tabular}[b]{rr@{}}
39  Telephone & <?lsmb tel ?>\\
40  Facsimile & <?lsmb fax ?>
41  \end{tabular}
42
43  \rule[1.5ex]{\textwidth}{0.5pt}
44}
45
46
47<?lsmb pagebreak 65 27 37 ?>
48\end{tabularx}
49
50\newpage
51
52\markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}
53
54\vspace*{-12pt}
55
56\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
57  \textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
58<?lsmb end pagebreak ?>
59
60
61\vspace*{0.5cm}
62
63\parbox[t]{1cm}{\hfill}
64\parbox[t]{.5\textwidth}{
65\textbf{From}
66\vspace{0.7cm}
67
68<?lsmb name ?>
69
70<?lsmb address1 ?>
71
72<?lsmb if %address2 ?>
73<?lsmb address2 ?>
74<?lsmb end address2 ?>
75
76<?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
77
78<?lsmb if country ?>
79<?lsmb country4 ?>
80<?lsmb end country ?>
81}
82\parbox[t]{.4\textwidth}{
83\textbf{Ship To}
84\vspace{0.7cm}
85
86<?lsmb shiptoname ?>
87
88<?lsmb shiptoaddress1 ?>
89
90<?lsmb if shiptoaddress2 ?>
91<?lsmb shiptoaddress2 ?>
92<?lsmb end shiptoaddress2 ?>
93
94<?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
95
96<?lsmb if shiptocountry ?>
97<?lsmb shiptocountry ?>
98<?lsmb end shiptocountry ?>
99}
100\hfill
101
102\vspace{1cm}
103
104\textbf{B I N} \parbox{0.3cm}{\hfill} \textbf{L I S T}
105\hfill
106
107\vspace{1cm}
108
109\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
110  \textbf{Order \#} & \textbf{Date} & \textbf{Contact}
111  <?lsmb if warehouse ?>
112  & \textbf{Warehouse}
113  <?lsmb end warehouse ?>
114  & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
115  \hline
116
117  <?lsmb ordnumber ?>
118  <?lsmb if shippingdate ?>
119  & <?lsmb shippingdate ?>
120  <?lsmb end shippingdate ?>
121  <?lsmb if not shippingdate ?>
122  & <?lsmb orddate ?>
123  <?lsmb end shippingdate ?>
124  & <?lsmb employee ?>
125  <?lsmb if warehouse ?>
126  & <?lsmb warehouse ?>
127  <?lsmb end warehouse ?>
128  & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
129  \hline
130\end{tabularx}
131
132\vspace{1cm}
133
134\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
135  \textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
136
137<?lsmb foreach number ?>
138  <?lsmb runningnumber ?> & <?lsmb number ?> & <?lsmb description ?> & <?lsmb serialnumber ?> &
139  <?lsmb deliverydate ?> & <?lsmb qty ?> & <?lsmb ship ?> & <?lsmb unit ?> & <?lsmb bin ?> \\
140<?lsmb end number ?>
141\end{tabularx}
142
143
144\rule{\textwidth}{2pt}
145
146\end{document}
147
148