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

\begin{document}

\pagestyle{myheadings}
\thispagestyle{empty}

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

\newsavebox{\ftr}
\sbox{\ftr}{
  \parbox{\textwidth}{
  \tiny
  \rule[1.5em]{\textwidth}{0.5pt}
Payment due NET &lt;?lsmb terms ?&gt; Days from date of Invoice. Interest on overdue amounts will acrue at the rate of 12\% per annum starting from &lt;?lsmb duedate ?&gt; until paid in full. Items returned are subject to a 10\% restocking charge.
A return authorization must be obtained from &lt;?lsmb company ?&gt; before goods are returned. Returns must be shipped prepaid and properly insured.
&lt;?lsmb company ?&gt; will not be responsible for damages during transit.
  }
}

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

% Disable old pagebreak handling
%&lt;?xlsmb pagebreak 65 27 37 ?&gt;
%\end{tabularx}
%
%  \rule{\textwidth}{2pt}
%  
%  \vspace{0.2cm}
%
%  \hfill
%  \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}}
%  &amp; Subtotal &amp; &lt;?xlsmb sumcarriedforward ?&gt; \\
%  \end{tabularx}
%
%\newpage
%
%\markboth{&lt;?xlsmb company ?&gt;\hfill &lt;?xlsmb invnumber ?&gt;}{&lt;?xlsmb company ?&gt;\hfill &lt;?xlsmb invnumber ?&gt;}
%
%\begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
%  \textbf{Pos} &amp; \textbf{Number} &amp; \textbf{Description} &amp; &amp; \textbf{Qt'y} &amp;
%    \textbf{Unit} &amp; \textbf{Price} &amp; \textbf{Disc \%} &amp; \textbf{Amount} \\ [0.5em]
%  &amp; carried forward from page &lt;?xlsmb lastpage ?&gt; &amp; &amp; &amp; &amp; &amp; &amp; &amp; &lt;?xlsmb sumcarriedforward ?&gt; \\ [0.5em]
%&lt;?xlsmb 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 ?&gt;
&lt;?lsmb zipcode ?&gt;

&lt;?lsmb country ?&gt;

\vspace{0.3cm}

&lt;?lsmb IF contact ?&gt;
&lt;?lsmb contact ?&gt;
\vspace{0.2cm}
&lt;?lsmb END ?&gt;

&lt;?lsmb IF customerphone ?&gt;
Tel: &lt;?lsmb customerphone ?&gt;
&lt;?lsmb END ?&gt;

&lt;?lsmb IF customerfax ?&gt;
Fax: &lt;?lsmb customerfax ?&gt;
&lt;?lsmb END ?&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 ?&gt;
&lt;?lsmb shiptozipcode ?&gt;

&lt;?lsmb shiptocountry ?&gt;

\vspace{0.3cm}

&lt;?lsmb IF shiptocontact ?&gt;
&lt;?lsmb shiptocontact ?&gt;
\vspace{0.2cm}
&lt;?lsmb END ?&gt;

&lt;?lsmb IF shiptophone ?&gt;
Tel: &lt;?lsmb shiptophone ?&gt;
&lt;?lsmb END ?&gt;

&lt;?lsmb IF shiptofax ?&gt;
Fax: &lt;?lsmb shiptofax ?&gt;
&lt;?lsmb END ?&gt;

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

\vspace{1cm}

\textbf{I N V O I C E}
\hfill

\vspace{1cm}

\begin{tabularx}{\textwidth}{*{7}{|X}|} \hline
  \textbf{Invoice \#} &amp; \textbf{Date} &amp; \textbf{Due} &amp; \textbf{Order \#}
  &amp; \textbf{Salesperson} &amp; \textbf{Shipping Point} &amp; \textbf{Ship via} \\ [0.5em]
  \hline
  &lt;?lsmb invnumber ?&gt; &amp; &lt;?lsmb invdate ?&gt; &amp; &lt;?lsmb duedate ?&gt; &amp; &lt;?lsmb ordnumber ?&gt; &amp; &lt;?lsmb employee ?&gt;
  &amp; &lt;?lsmb shippingpoint ?&gt; &amp; &lt;?lsmb shipvia ?&gt; \\
  \hline
\end{tabularx}

\vspace{1cm}

\begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  \textbf{Pos} &amp; \textbf{Number} &amp; \textbf{Description} &amp; &amp; \textbf{Qt'y} &amp;
    \textbf{Unit} &amp; \textbf{Price} &amp; \textbf{Disc \%} &amp; \textbf{Amount} \\ [0.5em]
&lt;?lsmb FOREACH number ?&gt;
&lt;?lsmb lc = loop.count - 1 ?&gt;
  &lt;?lsmb runningnumber.${lc} ?&gt; &amp; 
  &lt;?lsmb number.${lc} ?&gt; &amp; 
  &lt;?lsmb description.${lc} ?&gt; &amp; 
  &lt;?lsmb deliverydate.${lc} ?&gt; &amp;
  &lt;?lsmb qty.${lc} ?&gt; &amp; 
  &lt;?lsmb unit.${lc} ?&gt; &amp;
  &lt;?lsmb sellprice.${lc} ?&gt; &amp;
  &lt;?lsmb discountrate.${lc} ?&gt; &amp;
  &lt;?lsmb linetotal.${lc} ?&gt; \\
&lt;?lsmb END ?&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;
&lt;?lsmb lc = loop.count - 1 ?&gt;
  &amp; &lt;?lsmb taxdescription.${lc} ?&gt; on &lt;?lsmb taxbase.${lc} ?&gt; &amp; &lt;?lsmb tax.${lc} ?&gt; \\
&lt;?lsmb END ?&gt;
&lt;?lsmb IF paid ?&gt;
  &amp; Paid &amp; - &lt;?lsmb paid ?&gt; \\
&lt;?lsmb END ?&gt;
  \hline
&lt;?lsmb IF total ?&gt;
  &amp; Balance Due &amp; &lt;?lsmb total ?&gt;
&lt;?lsmb END ?&gt;
\end{tabularx}

\vspace{0.3cm}

&lt;?lsmb text_amount ?&gt; ***** &lt;?lsmb decimal ?&gt;/100
\hfill
All prices in \textbf{&lt;?lsmb currency ?&gt;}.

\vspace{12pt}

&lt;?lsmb notes ?&gt;
}

\vfill

&lt;?lsmb IF paid_1 ?&gt;
\begin{tabularx}{10cm}{@{}lXlr@{}}
  \textbf{Payments} &amp; &amp; &amp; \\
  \hline
  \textbf{Date} &amp; &amp; \textbf{Source} &amp; \textbf{Amount} \\
&lt;?lsmb END ?&gt;
&lt;?lsmb FOREACH payment ?&gt;
&lt;?lsmb lc = loop.count - 1 ?&gt;
  &lt;?lsmb paymentdate.${lc} ?&gt; &amp; &lt;?lsmb paymentaccount.${lc} ?&gt; &amp; &lt;?lsmb paymentsource.${lc} ?&gt; &amp; &lt;?lsmb payment.${lc} ?&gt; \\
&lt;?lsmb END ?&gt;
&lt;?lsmb IF paid_1 ?&gt;
\end{tabularx}
&lt;?lsmb END ?&gt;

\vspace{1cm}

\centerline{\textbf{Thank You for your valued business!}}

\rule{\textwidth}{0.5pt}

\usebox{\ftr}

\end{document}
&lt;?lsmb END ?&gt;
</pre></body></html>