1 \documentclass[twoside]{scrartcl}
 
   4 \usepackage[utf8]{inputenc}
 
   5 \setlength{\voffset}{0.5cm}
 
   6 \setlength{\hoffset}{-2.0cm}
 
   7 \setlength{\topmargin}{0cm}
 
   8 \setlength{\headheight}{0.5cm}
 
   9 \setlength{\headsep}{1cm}
 
  10 \setlength{\topskip}{0pt}
 
  11 \setlength{\oddsidemargin}{1.0cm}
 
  12 \setlength{\evensidemargin}{1.0cm}
 
  13 \setlength{\textwidth}{19.2cm}
 
  14 \setlength{\textheight}{24.5cm}
 
  15 \setlength{\footskip}{1cm}
 
  16 \setlength{\parindent}{0pt}
 
  17 \renewcommand{\baselinestretch}{1}
 
  20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
 
  24   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
 
  31     \begin{tabular}[b]{rr@{}}
 
  36     \rule[1.5ex]{\textwidth}{0.5pt}
 
  40 \fontfamily{cmss}\fontshape{n}\selectfont
 
  42 \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
 
  44 \pagestyle{myheadings}
 
  45 %\thispagestyle{empty}     use this with letterhead paper
 
  47 <%pagebreak 90 27 37%>
 
  50   \rule{\textwidth}{2pt}
 
  53   \begin{tabularx}{7cm}{Xr@{}}
 
  54   \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
 
  59 \markright{<%company%>\hfill <%invnumber%>}
 
  63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
 
  64   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
 
  65     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
 
  66   & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
 
  70 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
 
  74 \parbox[t]{1cm}{\hfill}
 
  98 Tel: <%customerphone%>
 
 126 Attn: <%shiptocontact%>
 
 128 <%end shiptocontact%>
 
 144 \textbf{I N V O I C E}
 
 149 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
 
 150   \textbf{Date} & <%invdate%> \\
 
 151   \textbf{Number} & <%invnumber%> \\
 
 152   \textbf{Order} & <%ordnumber%> \\
 
 153   \textbf{Clerk} & <%employee%>
 
 158 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
 
 159   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
 
 160     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
 
 162   <%number%> & <%description%> & <%qty%> &
 
 163     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
 
 169 \rule{\textwidth}{2pt}
 
 174 \begin{tabularx}{7cm}{Xr@{}}
 
 175   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
 
 177   <%taxdescription%> on <%taxbase%> & <%tax%> \\
 
 180   \textbf{Paid} & - <%paid%> \\
 
 183   \textbf{Balance Owing} & \textbf{<%total%>} \\
 
 189   All prices in \textbf{<%currency%>} funds.
 
 202 \begin{tabularx}{10cm}{@{}lXlr@{}}
 
 203   \textbf{Payments} & & & \\
 
 205   \textbf{Date} & \textbf{Account} & \textbf{Source} & \textbf{Amount} \\
 
 208   <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
 
 216 \centerline{\textbf{Thank You for your valued business!}}
 
 218 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
 
 220 \footnotetext[1]{\tiny
 
 221 Payment due NET <%terms%> Days from date of Invoice. Interest on overdue
 
 222 amounts will acrue at the rate of 1.5\% per month starting <%duedate%>
 
 223 until paid in full. Items returned are subject to a 10\% restocking charge.
 
 224 A return authorization must be obtained from <%company%> before goods are
 
 225 returned. Returns must be shipped prepaid and properly insured.
 
 226 <%company%> will not be responsible for damages during transit.}