<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

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

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

&lt;%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;%sumcarriedforward%&gt; \\
  \end{tabularx}

\newpage

\markboth{&lt;%company%&gt;\hfill &lt;%invnumber%&gt;}{&lt;%company%&gt;\hfill &lt;%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;%lastpage%&gt; &amp; &amp; &amp; &amp; &amp; &amp; &amp; &lt;%sumcarriedforward%&gt; \\ [0.5em]
&lt;%end pagebreak%&gt;


\vspace*{0.5cm}

\parbox[t]{.5\textwidth}{
\textbf{To}
\vspace{0.3cm}

&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;
}
\parbox[t]{.5\textwidth}{
\textbf{Ship To}
\vspace{0.3cm}

&lt;%shiptoname%&gt;

&lt;%shiptoaddress1%&gt;

&lt;%shiptoaddress2%&gt;

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

&lt;%shiptocountry%&gt;

\vspace{0.3cm}

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

&lt;%if shiptophone%&gt;
Tel: &lt;%shiptophone%&gt;
&lt;%end shiptophone%&gt;

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

&lt;%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;%invnumber%&gt; &amp; &lt;%invdate%&gt; &amp; &lt;%duedate%&gt; &amp; &lt;%ordnumber%&gt; &amp; &lt;%employee%&gt;
  &amp; &lt;%shippingpoint%&gt; &amp; &lt;%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;%foreach number%&gt;
  &lt;%runningnumber%&gt; &amp; &lt;%number%&gt; &amp; &lt;%description%&gt; &amp; &lt;%deliverydate%&gt; &amp;
  &lt;%qty%&gt; &amp; &lt;%unit%&gt; &amp; &lt;%sellprice%&gt; &amp; &lt;%discountrate%&gt; &amp; &lt;%linetotal%&gt; \\
&lt;%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;%subtotal%&gt; \\
&lt;%foreach tax%&gt;
  &amp; &lt;%taxdescription%&gt; on &lt;%taxbase%&gt; &amp; &lt;%tax%&gt; \\
&lt;%end tax%&gt;
&lt;%if paid%&gt;
  &amp; Paid &amp; - &lt;%paid%&gt; \\
&lt;%end paid%&gt;
  \hline
&lt;%if total%&gt;
  &amp; Balance Due &amp; &lt;%total%&gt;
&lt;%end total%&gt;
\end{tabularx}

\vspace{0.3cm}

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

\vspace{12pt}

&lt;%notes%&gt;
}

\vfill

&lt;%if paid_1%&gt;
\begin{tabularx}{10cm}{@{}lXlr@{}}
  \textbf{Payments} &amp; &amp; &amp; \\
  \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{tabularx}
&lt;%end paid_1%&gt;

\vspace{1cm}

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

\rule{\textwidth}{0.5pt}

\usebox{\ftr}

\end{document}

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