<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;%include letterhead.tex%&gt;

\parbox[t]{.5\textwidth}{
&lt;%name%&gt;

&lt;%address1%&gt;

&lt;%address2%&gt;

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

&lt;%country%&gt;
}
\parbox[t]{.5\textwidth}{
&lt;%if customerphone%&gt;
Tel: &lt;%customerphone%&gt;
&lt;%end customerphone%&gt;

&lt;%if customerfax%&gt;
Fax: &lt;%customerfax%&gt;
&lt;%end customerfax%&gt;

&lt;%email%&gt;
}
\hfill

\vspace{1cm}

\textbf{S T A T E M E N T} \hfill \textbf{&lt;%statementdate%&gt;}

\vspace{2cm}

\begin{tabular*}{\textwidth}{|ll@{\extracolsep\fill}ccrrrr|}
  \hline
  \textbf{Invoice \#} &amp; \textbf{Order \#} &amp; \textbf{Date} &amp; \textbf{Due} &amp;
  \textbf{Current} &amp; \textbf{30} &amp; \textbf{60} &amp; \textbf{90} \\
  \hline
&lt;%foreach invnumber%&gt;
  &lt;%invnumber%&gt; &amp; &lt;%ordnumber%&gt; &amp; &lt;%invdate%&gt; &amp; &lt;%duedate%&gt; &amp;
  &lt;%c0%&gt; &amp; &lt;%c30%&gt; &amp; &lt;%c60%&gt; &amp; &lt;%c90%&gt; \\
&lt;%end invnumber%&gt;
  \multicolumn{8}{|l|}{\mbox{}} \\
  \hline
  \textbf{Subtotal} &amp; &amp; &amp; &amp; &lt;%c0total%&gt; &amp; &lt;%c30total%&gt; &amp; &lt;%c60total%&gt; &amp; &lt;%c90total%&gt; \\
  \hline
\end{tabular*}

\vspace{0.5cm}

\hfill
\begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}}
  &amp; \textbf{Total outstanding} &amp; \textbf{&lt;%total%&gt;}
\end{tabularx}

\vfill
All amounts in \textbf{&lt;%currency%&gt;} funds.

Please make check payable to \textbf{&lt;%company%&gt;}

\end{document}

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