\documentclass[twoside]{scrartcl}
-\usepackage[frame]{xy}
+\usepackage{eurosym}
\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}
+\usepackage{geyger}
\begin{document}
+\thispagestyle{plain}
+
\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
-\newsavebox{\hdr}
-\sbox{\hdr}{
- \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
-
- \parbox{\textwidth}{
- \parbox[b]{12cm}{
- <%company%>
-
- <%address%>}\hfill
- \begin{tabular}[b]{rr@{}}
- Telefon & <%tel%>\\
- Telefax & <%fax%>
- \end{tabular}
-
- \rule[1.5ex]{\textwidth}{0.5pt}
- }
-}
-
\fontfamily{cmss}\fontshape{n}\selectfont
-\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
-
-\pagestyle{myheadings}
-%\thispagestyle{empty} use this with letterhead paper
+<%pagebreak 80 28 37%>
+\end{tabularx}
-<%pagebreak 90 27 48%>
-\end{tabular*}
+\newpage
- \rule{\textwidth}{2pt}
-
- \hfill
- \begin{tabularx}{7cm}{Xr@{}}
- \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
- \end{tabularx}
+\begin{tabularx}{\textwidth}{lrXrr}
+ \hline
+ \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
+ \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
+ \hline
+ <%foreach number%>
+ <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
+ FIXME & <%linetotal%>\\
+ <%end number%>
+<%end pagebreak%>
-\newpage
+\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
-\markright{<%company%>\hfill <%invnumber%>}
+\vspace*{1.5cm}
-\vspace*{-12pt}
+\begin{minipage}{8cm}
+ \tiny
+ \underline{GEYGER GbR $\bullet$ Druckereistr. 9 $\bullet$ 05159
+ Leipzig-Stahmeln}
+ \normalsize
-\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
- \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
- \textbf{Einh} & \textbf{Preis} & \textbf{Rab} & \textbf{Total} \\
- & Übertrag von Seite <%lastpage%> & & & & & <%sumcarriedforward%> \\
-<%end pagebreak%>
+ <%name%>
+ <%street%>
-\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
+ <%zipcode%> <%city%>
-\vspace*{2cm}
+ <%country%>
+\end{minipage}
+\hfill
+\begin{minipage}{6cm}
+ \rightline{\LARGE\textbf{\textit{Rechnung}}}
+ \rightline{\large\textbf{\textit{Nr. <%invnumber%>%
+ }}}
-<%name%>
+ Rechnungsdatum:\hfill <%invdate%>
-<%street%>
+ Auftrag-Nr:\hfill <%ordnumber%>
-<%zipcode%>
+ Telefon:\hfill FIXME <%phone%>
-<%city%>
+ Telefax:\hfill FIXME <%fax%>
-<%country%>
+ Ansprechpartner:\hfill <%employee%>
+\end{minipage}
-\vspace{3.5cm}
+\vspace*{0.5cm}
-\textbf{R E C H N U N G}
+Ihre Bestellung ex <%cusordnumber%> vom <%orddate%>
\hfill
-\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
- \textbf{Datum} & <%invdate%> \\
- \textbf{Nummer} & <%invnumber%> \\
-\end{tabular}
+Leipzig-Stahmeln, \today
-\vspace{1cm}
+\vspace*{0.5cm}
-\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
- \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
- \textbf{Einh} & \textbf{Preis} & \textbf{Rab} & \textbf{Total} \\
-<%foreach number%>
- <%number%> & <%description%> & <%qty%> &
- <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
-<%end number%>
-\end{tabular*}
+Sehr geehrte Damen und Herren,
+für unsere erbrachten Lieferungen und Leistungen erlauben wir uns,
+folgende Positionen in Rechnung zu stellen.
-\parbox{\textwidth}{
-\rule{\textwidth}{2pt}
+\vspace{0.5cm}
-\vspace{0.2cm}
+\begin{minipage}[t]{8cm}
+ \underline{Lieferadresse:}
-\hfill
-\begin{tabularx}{7cm}{Xr@{}}
- \textbf{Zwischensumme} & \textbf{<%subtotal%>} \\
-<%foreach tax%>
- <%taxdescription%> auf <%taxbase%> & <%tax%> \\
-<%end tax%>
+ <%dc_name%>
+
+ <%dc_street%>
+
+ <%dc_zipcode%> <%dc_city%>
+
+ <%dc_country%>
+\end{minipage}
+\begin{minipage}[t]{8cm}
+ \underline{Händler}
+
+ <%dv_name%>
+
+ <%dv_street%>
+
+ <%dv_zipcode%> <%dv_city%>
+
+ <%dv_country%>
+
+ Telefon: <%dv_phone%>
+\end{minipage}
+
+\vspace{0.5cm}
+
+\begin{tabularx}{\textwidth}{lrXrr}
\hline
- \textbf{Total} & \textbf{<%invtotal%>} \\
-<%if paid%>
- \textbf{Bezahlt} & <%paid%> \\
-<%end paid%>
-<%if total%>
- \textbf{Bezahlbar} & \textbf{<%total%>} \\
-<%end total%>
+ \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
+ \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
+ \hline
+ <%foreach number%>
+ <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
+ FIXME & <%linetotal%>\\
+ <%end number%>
\end{tabularx}
-\vspace{0.3cm}
+\begin{tabularx}{\textwidth}{Xrr}
+ Zwischensumme: & & <%subtotal%>\\
+ abbzüglich der nicht rabattierfähigen Positionen $(*)$ &
+ FIXME & FIXME \\
+ Rabatt bei vereinbarungsgemäßer Bezahlung\hfill
+ FIXME von & FIXME & FIXME\\
+\end{tabularx}
-\hfill
- Alle Preise in \textbf{<%currency%>}.
+\vspace{0.5cm}
-\vspace{12pt}
+Liefertermin: <%deliverydate%>
-<%if notes%>
- <%notes%>
-<%end if%>
+\vspace{0.5cm}
-}
+\hrule
-%\vfill
-%\centerline{\textbf{salute}}
+\hfill
+\begin{tabular}{l@{\hspace*{0.2cm}\euro\hspace*{0.2cm}}r}
+ Nettobetrag & FIXME\\
+ <%foreach tax%>
+ <%taxrate%> <%taxdescription%> & <%tax%>\\
+ <%end tax%>
+ \textbf{Endbetrag} & \textbf{<%invtotal%>%
+ }
+\end{tabular}
+\hrule
-\renewcommand{\thefootnote}{\fnsymbol{footnote}}
+\vspace{0.2cm}
-\footnotetext[1]{\tiny
-Rechnung ist bezahlbar innerhalb von <%terms%> Tagen.
-Nach dem <%duedate%> werden Zinsen zu einem
-monatlichen Satz von 1.5\% verrechnet.
-Waren bleiben im Besitz von <%company%> bis die Rechnung voll bezahlt ist.
-Rückgaben werden mit 10 Prozent Lagergebühren belastet. Beschädigte Waren
-und Waren ohne eine Rückgabenummer werden nicht entgegengenommen.
-}
+Zahlbar bis FIXME mit FIXME Skonto (FIXME) = FIXME \euro\\
+Zahlbar bis <%terms%> <%invtotal%> \euro\ ohne Abzüge
\end{document}
-