<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}
\setlength{\parindent}{0pt}

\begin{document}

\pagestyle{myheadings}
\thispagestyle{empty}

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

&lt;%include letterhead.tex%&gt;

\centerline{\textbf{A R} \hspace{0.3cm} \textbf{T R A N S A C T I O N}}

\vspace*{0.5cm}

\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;

\vspace{0.3cm}

&lt;%if contact%&gt;
&lt;%contact%&gt;
\vspace{0.2cm}
&lt;%end contact%&gt;

&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;

&lt;%if customertaxnumber%&gt;
Tax Number: &lt;%customertaxnumber%&gt;
&lt;%end customertaxnumber%&gt;
}
\hfill
\begin{tabular}[t]{ll}
  \textbf{Invoice \#} &amp; &lt;%invnumber%&gt; \\
  \textbf{Date} &amp; &lt;%invdate%&gt; \\
  \textbf{Due} &amp; &lt;%duedate%&gt; \\
  &lt;%if ponumber%&gt;
    \textbf{PO \#} &amp; &lt;%ponumber%&gt; \\
  &lt;%end ponumber%&gt;
  &lt;%if ordnumber%&gt;
    \textbf{Order \#} &amp; &lt;%ordnumber%&gt; \\
  &lt;%end ordnumber%&gt;
  \textbf{Employee} &amp; &lt;%employee%&gt; \\
\end{tabular}

\vspace{1cm}

\begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
&lt;%foreach amount%&gt;
  &lt;%accno%&gt; &amp; &lt;%account%&gt; &amp; &lt;%amount%&gt; &amp; &lt;%description%&gt; &amp; &lt;%projectnumber%&gt; \\
&lt;%end amount%&gt;

  \multicolumn{2}{r}{\textbf{Subtotal}} &amp; &lt;%subtotal%&gt; &amp; \\
&lt;%foreach tax%&gt;
  \multicolumn{2}{r}{\textbf{&lt;%taxdescription%&gt; @ &lt;%taxrate%&gt; \%}} &amp; &lt;%tax%&gt; &amp; \\
&lt;%end tax%&gt;

  \multicolumn{2}{r}{\textbf{Total}} &amp; &lt;%invtotal%&gt; &amp; \\
  
\end{tabularx}

\vspace{0.3cm}

&lt;%text_amount%&gt; ***** &lt;%decimal%&gt;/100 &lt;%currency%&gt;

&lt;%if notes%&gt;
\vspace{0.3cm}
&lt;%notes%&gt;
&lt;%end notes%&gt;

\vspace{0.3cm}

&lt;%if paid_1%&gt;
\begin{tabular}{@{}lllr@{}}
  \multicolumn{5}{c}{\textbf{Payments}} \\
  \hline
  \textbf{Date} &amp; &amp; \textbf{Source} &amp; \textbf{Amount} \\
&lt;%end paid_1%&gt;
&lt;%foreach payment%&gt;
  &lt;%paymentdate%&gt; &amp; &lt;%paymentaccount%&gt; &amp; &lt;%paymentsource%&gt; &amp; &lt;%payment%&gt; \\
&lt;%end payment%&gt;
&lt;%if paid_1%&gt;
\end{tabular}
&lt;%end paid_1%&gt;

\vspace{0.5cm}

&lt;%foreach tax%&gt;
\textbf{\scriptsize &lt;%taxdescription%&gt; Registration &lt;%taxnumber%&gt;} \\
&lt;%end tax%&gt;
  
\end{document}

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