<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[10pt,letterpaper,oneside,onecolumn]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-1.9cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.5cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{19.2cm}
\setlength{\textheight}{24.7cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}

\begin{document}

\pagestyle{myheadings}
\thispagestyle{empty}

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

\vspace*{-1.3cm}

\parbox{\textwidth}{%
  \parbox[b]{.42\textwidth}{%
    &lt;%company%&gt;
   
    &lt;%address%&gt;
  }
  \parbox[b]{.2\textwidth}{
    \includegraphics[scale=0.3]{ledger-smb}
  }\hfill
  \begin{tabular}[b]{rr@{}}
  Telephone &amp; &lt;%tel%&gt;\\
  Facsimile &amp; &lt;%fax%&gt;
  \end{tabular}

  \rule[1.5em]{\textwidth}{0.5pt}
}

\centerline{\textbf{A P} \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;%state%&gt; &lt;%zipcode%&gt;

&lt;%country%&gt;

\vspace{0.3cm}

&lt;%if contact%&gt;
&lt;%contact%&gt;
&lt;%end contact%&gt;

\vspace{0.2cm}

&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
\begin{tabular}[t]{ll}
  \textbf{Invoice \#} &amp; &lt;%invnumber%&gt; \\
  \textbf{Date} &amp; &lt;%invdate%&gt; \\
  \textbf{Due} &amp; &lt;%duedate%&gt; \\
  \textbf{Order \#} &amp; &lt;%ordnumber%&gt; \\
  \textbf{Employee} &amp; &lt;%employee%&gt; \\
\end{tabular}

\vspace{1cm}

\begin{tabularx}{.5\textwidth}[t]{@{}llrl@{}}
&lt;%foreach amount%&gt;
  &lt;%accno%&gt; &amp; &lt;%account%&gt; &amp; &lt;%amount%&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}
&lt;%notes%&gt;

\vspace{0.3cm}

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

\vspace{0.3cm}

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

\end{document}

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