<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[latin1]{inputenc}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-2.0cm}
\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.5cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}

\newlength{\descrwidth}\setlength{\descrwidth}{10cm}

\newsavebox{\hdr}
\sbox{\hdr}{
  \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont

  \parbox{\textwidth}{
    \parbox[b]{12cm}{
      &lt;?lsmb company ?&gt;
      
      &lt;?lsmb address ?&gt;}\hfill
    \begin{tabular}[b]{rr@{}}
    Telephone &amp; &lt;?lsmb tel ?&gt;\\
    Facsimile &amp; &lt;?lsmb fax ?&gt;
    \end{tabular}

    \rule[1.5ex]{\textwidth}{0.5pt}
  }
}
    
\fontfamily{cmss}\fontshape{n}\selectfont

\markboth{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb invnumber ?&gt;}{\usebox{\hdr}}

\pagestyle{myheadings}
%\thispagestyle{empty}     use this with letterhead paper

&lt;?lsmb pagebreak 65 27 37 ?&gt;
\end{tabular*}

  \rule{\textwidth}{2pt}
  
  \hfill
  \begin{tabularx}{7cm}{Xr@{}}
  \textbf{Subtotal} &amp; \textbf{&lt;?lsmb sumcarriedforward ?&gt;} \\
  \end{tabularx}

\newpage

\markright{&lt;?lsmb company ?&gt;\hfill &lt;?lsmb invnumber ?&gt;}

\vspace*{-12pt}

\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  \textbf{Number} &amp; \textbf{Description} &amp; \textbf{Qt'y} &amp;
    \textbf{Unit} &amp; \textbf{Price} &amp; \textbf{Disc} &amp; \textbf{Amount} \\
  &amp; carried forward from page &lt;?lsmb lastpage ?&gt; &amp; &amp; &amp; &amp; &amp; &lt;?lsmb sumcarriedforward ?&gt; \\
&lt;?lsmb end pagebreak ?&gt;


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

\vspace*{2cm}

&lt;?lsmb name ?&gt;

&lt;?lsmb address1 ?&gt;

&lt;?lsmb if address2 ?&gt;
&lt;?lsmb address2 ?&gt;
&lt;?lsmb end address2 ?&gt;

&lt;?lsmb city ?&gt; &lt;?lsmb state ?&gt; &lt;?lsmb zipcode ?&gt;

&lt;?lsmb if country ?&gt;
&lt;?lsmb country ?&gt;
&lt;?lsmb end country ?&gt;

\vspace{3.5cm}

\textbf{F A K T U U R}
\hfill
\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  \textbf{Datum} &amp; &lt;?lsmb invdate ?&gt; \\
  \textbf{Faktuurnummer} &amp; &lt;?lsmb invnumber ?&gt; \\
  \textbf{Klantnummer} &amp; &lt;?lsmb customer_id ?&gt;
\end{tabular}

\vspace{1cm}

\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  \textbf{Artikelnr} &amp; \textbf{Omschrijving} &amp; \textbf{Aantal} &amp;
    \textbf{Eenheid} &amp; \textbf{Prijs} &amp; \textbf{Korting} &amp; \textbf{Bedrag} \\
&lt;?lsmb foreach number ?&gt;
  &lt;?lsmb number ?&gt; &amp; &lt;?lsmb description ?&gt; &amp; &lt;?lsmb qty ?&gt; &amp;
    &lt;?lsmb unit ?&gt; &amp; &lt;?lsmb sellprice ?&gt; &amp; &lt;?lsmb discount ?&gt; &amp; &lt;?lsmb linetotal ?&gt; \\
&lt;?lsmb end number ?&gt;
\end{tabular*}


\parbox{\textwidth}{
\rule{\textwidth}{2pt}

\vspace{0.2cm}

\hfill
\begin{tabularx}{7cm}{Xr@{}}
  \textbf{Subtotaal} &amp; \textbf{&lt;?lsmb subtotal ?&gt;} \\
&lt;?lsmb foreach tax ?&gt;
  &lt;?lsmb taxdescription ?&gt; on &lt;?lsmb taxbase ?&gt; &amp; &lt;?lsmb tax ?&gt;\\
&lt;?lsmb end tax ?&gt;
  \hline
  \textbf{Totaal} &amp; \textbf{&lt;?lsmb total ?&gt;}\\
\end{tabularx}

\vspace{0.3cm}

\hfill
  Alle prijzen in \textbf{&lt;?lsmb currency ?&gt;}.

\vspace{12pt}

&lt;?lsmb if notes ?&gt;
  &lt;?lsmb notes ?&gt;
&lt;?lsmb end if ?&gt;

}

\vfill
\centerline{\textbf{Dank voor uw gewaardeerde klandizie!}}

\end{document}

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