X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/64c836e6159e5bebb3fb8d78affe9d4e17609cfc..fbcd5580:/templates/print/RB/letter.tex?ds=sidebyside

diff --git a/templates/print/RB/letter.tex b/templates/print/RB/letter.tex
index 67a26422c..df1bcde1e 100644
--- a/templates/print/RB/letter.tex
+++ b/templates/print/RB/letter.tex
@@ -1,43 +1,25 @@
-\documentclass[twoside]{scrartcl}
-\usepackage{eurosym}
-\usepackage{tabularx}
-\usepackage[utf8]{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}
-\begin{document}
-
-\thispagestyle{empty}
-
-\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
-\setlength{\parindent}{0cm}
-
-\fontfamily{cmss}\fontshape{n}\selectfont
+% config: use-template-toolkit=1
+% config: tag-style=$( )$
+$( USE KiviLatex )$
+$( USE P )$
+$( SET customer = letter.customer_vendor )$
+\input{inheaders.tex}
+$( KiviLatex.required_packages_for_html )$
+
+% Variablen, die in settings verwendet werden
+\newcommand{\lxlangcode}{$(template_meta.language.template_code)$}
+\newcommand{\lxmedia}{$(template_meta.media)$}
+\newcommand{\lxcurrency}{}
+\newcommand{\kivicompany}{$(employee_company)$}
+
+% settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
+\input{insettings.tex}
+
+% laufende Kopfzeile:
+%\ourhead{}{}{$( KiviLatex.filter(letter.subject) )$}{$( KiviLatex.filter(letter.letternumber) )$}{$( KiviLatex.filter(letter.date.to_kivitendo) )$}
+\ourhead{}{}{}{}{}
 
-<%pagebreak 80 28 37%>
-\end{tabularx}
-
-\newpage
-
-%\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%>
-%<%end pagebreak%>
+\begin{document}
 
 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
 
@@ -45,70 +27,50 @@
 
 \begin{minipage}{14cm}
 
-  <%name%>
+  $( KiviLatex.filter(customer.name) )$
 
-  <%contact_formal%>
+  $( KiviLatex.filter(letter.contact.formal_greeting) )$
 
-  <%countrycode%> <%zipcode%> <%city%>
+  $( KiviLatex.filter(customer.street) )$
 
-  <%country%>
+  $( KiviLatex.filter(customer.zipcode) )$ $( KiviLatex.filter(customer.city) )$
+
+  $( KiviLatex.filter(customer.country) )$
 
-\end{minipage}
-\hfill
-\begin{minipage}{6cm}
 \end{minipage}
 
 \vspace{2.5cm}
+\hfill $( KiviLatex.filter(letter.date.to_kivitendo) )$
 
-\begin{minipage}{14cm}
-
-\textbf{<%reference%>}
+$( IF letter.reference )$
+\textbf{\ihrzeichen : $( KiviLatex.filter(letter.reference) )$}
 
 \vspace{1cm}
+$( END )$
 
-
-\textbf{<%subject%>}
+$( IF letter.subject )$
+\textbf{\betreff : $( KiviLatex.filter(letter.subject) )$}
 
 \vspace{1cm}
+$( END )$
 
-  <%greeting%>
+$( KiviLatex.filter(letter.greeting) )$
 
 \vspace{0.5cm}
 
-  <%body%>
+$( KiviLatex.filter_html(letter.body) )$
 
 \vspace{0.5cm}
 
-  <%close%>
-
-  <%company_name%>
-
-\end{minipage}
-\hfill
-\begin{minipage}{6cm}
-  <%date%>
-
-\vspace{5cm}
-
-Anlagen | Attch.:
-\end{minipage}
-
-\vspace*{0.5cm}
-
 \begin{minipage}{6cm}
 
-\textbf{<%employee%>}
-
-<%employee_position%>
+\textbf{$( KiviLatex.filter(letter.employee.name) )$}
 
 \end{minipage}
 \begin{minipage}{6cm}
 
-\textbf{<%salesman%>}
-
-<%salesman_position%>
+\textbf{$( KiviLatex.filter(letter.salesman.name) )$}
 
 \end{minipage}
 
 \end{document}
-
