<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{tabularx}
\usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}

\begin{document}


\pagestyle{myheadings}
\thispagestyle{empty}

\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont

&lt;?lsmb include letterhead.tex ?&gt;


&lt;?lsmb pagebreak 65 27 48 ?&gt;
\end{tabularx}

  \rule{\textwidth}{2pt}
  
  \hfill
  \begin{tabularx}{7cm}{Xr@{\hspace{1cm}r@{}}
  &amp; Subtotal &amp; &lt;?lsmb sumcarriedforward ?&gt; \\
  \end{tabularx}

\newpage

\markboth{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb ordnumber ?&gt;}{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb ordnumber ?&gt;}

\begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  \textbf{Number} &amp; \textbf{Description} &amp; \textbf{Qt'y} &amp;
    \textbf{Unit} &amp; \textbf{Price} &amp; \textbf{Amount} \\
  &amp; carried forward from &lt;?lsmb lastpage ?&gt; &amp; &amp; &amp; &amp; &lt;?lsmb sumcarriedforward ?&gt; \\
&lt;?lsmb end pagebreak ?&gt;


\vspace*{0.5cm}

\parbox[t]{.5\textwidth}{
\textbf{To}
\vspace{0.3cm}
  
&lt;?lsmb name ?&gt;

&lt;?lsmb address1 ?&gt;

&lt;?lsmb address2 ?&gt;

&lt;?lsmb city ?&gt;
&lt;?lsmb if state ?&gt;
\hspace{-0.1cm}, &lt;?lsmb state ?&gt;
&lt;?lsmb end state ?&gt;
&lt;?lsmb zipcode ?&gt;

&lt;?lsmb country ?&gt;

\vspace{0.3cm}

&lt;?lsmb if contact ?&gt;
Attn: &lt;?lsmb contact ?&gt;
\vspace{0.2cm}
&lt;?lsmb end contact ?&gt;

&lt;?lsmb if vendorphone ?&gt;
Tel: &lt;?lsmb vendorphone ?&gt;
&lt;?lsmb end vendorphone ?&gt;

&lt;?lsmb if vendorfax ?&gt;
Fax: &lt;?lsmb vendorfax ?&gt;
&lt;?lsmb end vendorfax ?&gt;

&lt;?lsmb email ?&gt;
}
\parbox[t]{.5\textwidth}{
\textbf{Ship To}
\vspace{0.3cm}

&lt;?lsmb shiptoname ?&gt;

&lt;?lsmb shiptoaddress1 ?&gt;

&lt;?lsmb shiptoaddress2 ?&gt;

&lt;?lsmb shiptocity ?&gt;
&lt;?lsmb if shiptostate ?&gt;
\hspace{-0.1cm}, &lt;?lsmb shiptostate ?&gt;
&lt;?lsmb end shiptostate ?&gt;
&lt;?lsmb shiptozipcode ?&gt;

&lt;?lsmb shiptocountry ?&gt;

\vspace{0.3cm}

&lt;?lsmb if shiptocontact ?&gt;
Attn: &lt;?lsmb shiptocontact ?&gt;
\vspace{0.2cm}
&lt;?lsmb end shiptocontact ?&gt;

&lt;?lsmb if shiptophone ?&gt;
Tel: &lt;?lsmb shiptophone ?&gt;
&lt;?lsmb end shiptophone ?&gt;

&lt;?lsmb if shiptofax ?&gt;
Fax: &lt;?lsmb shiptofax ?&gt;
&lt;?lsmb end shiptofax ?&gt;

&lt;?lsmb shiptoemail ?&gt;
}
\hfill

\vspace{1cm}

\textbf{P U R C H A S E} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
\hfill

\vspace{1cm}
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  \textbf{Order \#} &amp; \textbf{Date} &amp; \textbf{Required by} &amp; \textbf{Contact} &amp; \textbf{Shipping Point} &amp; \textbf{Ship via} \\ [0.5ex]
  \hline
  &lt;?lsmb ordnumber ?&gt; &amp; &lt;?lsmb orddate ?&gt; &amp; &lt;?lsmb reqdate ?&gt; &amp; &lt;?lsmb employee ?&gt; &amp; &lt;?lsmb shippingpoint ?&gt; &amp; &lt;?lsmb shipvia ?&gt; \\
  \hline
\end{tabularx}

\vspace{1cm}

\begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  \textbf{Number} &amp; \textbf{Description} &amp; \textbf{Qt'y} &amp;
    \textbf{Unit} &amp; \textbf{Price} &amp; \textbf{Amount} \\
&lt;?lsmb foreach number ?&gt;
  &lt;?lsmb number ?&gt; &amp; &lt;?lsmb description ?&gt; &amp; &lt;?lsmb qty ?&gt; &amp;
    &lt;?lsmb unit ?&gt; &amp; &lt;?lsmb sellprice ?&gt; &amp; &lt;?lsmb linetotal ?&gt; \\
&lt;?lsmb end number ?&gt;
\end{tabularx}


\parbox{\textwidth}{
\rule{\textwidth}{2pt}

\vspace{0.2cm}

\hfill
\begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  &amp; Subtotal &amp; &lt;?lsmb subtotal ?&gt; \\
&lt;?lsmb foreach tax ?&gt;
  &amp; &lt;?lsmb taxdescription ?&gt; on &lt;?lsmb taxbase ?&gt; &amp; &lt;?lsmb tax ?&gt;\\
&lt;?lsmb end tax ?&gt;
  \hline
  &amp; Total &amp; &lt;?lsmb ordtotal ?&gt;\\
\end{tabularx}

\vspace{0.3cm}

\hfill
  All prices in \textbf{&lt;?lsmb currency ?&gt;}.

\vspace{12pt}

&lt;?lsmb notes ?&gt;

}


%\renewcommand{\thefootnote}{\fnsymbol{footnote}}

%\footnotetext[1]{\tiny }

\end{document}

</pre></body></html>