Merge branch 'master' of lx-office.linet-services.de:lx-office-erp
[kivitendo-erp.git] / templates / German-purchase_order.tex
index 6b03539..715bd1b 100644 (file)
 \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}{17cm}
-\setlength{\textheight}{24.5cm}
-\setlength{\footskip}{1cm}
-\setlength{\parindent}{0pt}
-\renewcommand{\baselinestretch}{1}
+\usepackage[utf8]{inputenc}
 \begin{document}
 
-\newlength{\descrwidth}\setlength{\descrwidth}{9cm}
-
-\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 <%ordnumber%>}{\usebox{\hdr}}
+\thispagestyle{empty}
 
-\pagestyle{myheadings}
-%\thispagestyle{empty}     use this with letterhead paper
+\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
+\setlength{\parindent}{0cm}
 
-<%pagebreak 90 27 48%>
-\end{tabular*}
+\fontfamily{cmss}\fontshape{n}\selectfont
 
-  \rule{\textwidth}{2pt}
-  
-  \hfill
-  \begin{tabularx}{7cm}{Xr@{}}
-  \textbf{Zwischensumme} & \textbf{<%sumcarriedforward%>} \\
-  \end{tabularx}
+<%pagebreak 80 28 37%>
+\end{tabularx}
 
 \newpage
 
-\markright{<%company%>\hfill <%ordnumber%>}
-
-\vspace*{-12pt}
+\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%> &
+    <%sellprice%> & <%linetotal%>\\
+  <%end number%>
 
-\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
-  \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
-    \textbf{Einh} & \textbf{Preis} & \textbf{Total} \\
-  & Übertrag von <%lastpage%> & & & & <%sumcarriedforward%> \\
 <%end pagebreak%>
 
-
 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
 
-\vspace*{2cm}
+\vspace*{1.5cm}
 
-<%name%>
+\begin{minipage}{8cm}
+  <%name%>
 
-<%street%>
+  <%street%>
 
-<%zipcode%>
+  <%zipcode%> <%city%>
 
-<%city%>
+  <%country%>
+\end{minipage}
+\hfill
+\begin{minipage}{6cm}
+  \rightline{\LARGE\textbf{\textit{Bestellung}}}
+  \rightline{\large\textbf{\textit{Nr. <%ordnumber%>%
+  }}}
 
-<%country%>
+  Datum:\hfill <%orddate%>
 
-\vspace{3.5cm}
+  Kunden-Nr:\hfill <%customernumber%>
 
-\textbf{B E S T E L L U N G}
-\hfill
-\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
-  \textbf{Datum} & <%orddate%> \\
-<%if reqdate%>
-  \textbf{Lieferung bis} & <%reqdate%> \\
-<%end reqdate%>
-  \textbf{Nummer} & <%ordnumber%>
-\end{tabular}
+  Telefon:\hfill <%phone%>
 
-\vspace{1cm}
+  Telefax:\hfill <%fax%>
 
-\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
-  \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
-    \textbf{Einh} & \textbf{Preis} & \textbf{Total} \\
-<%foreach number%>
-  <%number%> & <%description%> & <%qty%> &
-    <%unit%> & <%sellprice%> & <%linetotal%> \\
-<%end number%>
-\end{tabular*}
+  Ansprechpartner:\hfill <%employee%>
+\end{minipage}
 
+\vspace*{0.5cm}
 
-\parbox{\textwidth}{
-\rule{\textwidth}{2pt}
 
-\vspace{0.2cm}
+Hiermit bestellen wir verbindlich folgende Positionen:
+\vspace{0.5cm}
 
-\hfill
-\begin{tabularx}{7cm}{Xr@{}}
-  \textbf{Zwischensumme} & \textbf{<%subtotal%>} \\
-<%foreach tax%>
-  <%taxdescription%> on <%taxbase%> & <%tax%>\\
-<%end tax%>
+\begin{tabularx}{\textwidth}{lrXrr}
   \hline
-  \textbf{Total} & \textbf{<%ordtotal%>}\\
+  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
+  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
+  \hline
+  <%foreach number%>
+    <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
+    <%sellprice%> \euro  & <%linetotal%> \euro \\
+  <%end number%> \hline
+  \multicolumn{4}{l}{Nettobetrag} & <%subtotal%> \euro\\
+  <%foreach tax%>
+    \multicolumn{4}{l}{<%taxdescription%>} & <%tax%>\euro \\
+  <%end tax%>
+  \multicolumn{4}{l}{\textbf{Endbetrag}} & \textbf{<%ordtotal%> \euro} \\
 \end{tabularx}
-
-\vspace{0.3cm}
-
-\hfill
-  Alle Preise in \textbf{<%currency%>}.
-
-\vspace{12pt}
-
-<%if notes%>
-  <%notes%>
-<%end if%>
-
-}
-
-
-%\renewcommand{\thefootnote}{\fnsymbol{footnote}}
-
-%\footnotetext[1]{\tiny }
+\hrule
 
 \end{document}
 
-