X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2FStandard%2Fsales_quotation.tex;h=356f68522453ba9941e428841c2d50a3ce8ab3a5;hb=670205aa27d6491f1a88c9da902ae316a17614f3;hp=42c2422fb3d1c49fb42448984d4fb7cbd9b2809a;hpb=8efbc44487e0f99236ec55539a61f1d0d04635a9;p=kivitendo-erp.git diff --git a/templates/print/Standard/sales_quotation.tex b/templates/print/Standard/sales_quotation.tex index 42c2422fb..356f68522 100644 --- a/templates/print/Standard/sales_quotation.tex +++ b/templates/print/Standard/sales_quotation.tex @@ -1,79 +1,276 @@ -\documentclass[twoside]{scrartcl} -\usepackage{eurosym} -\usepackage{tabularx} -\usepackage[utf8]{inputenc} -\begin{document} +% salex_quotation.tex +% Verkauf - Angebot +% Überarbeitet von Norbert Simon, n.simon@linet-services.de +% Version 2.5 vom 15. November 2011 +% Basiert auf der Arbeit von kmk@lilalaser.de / 2007 +% Diese Vorlage steht unter der GPL-Lizenz, Version 3 +% siehe http://www.gnu.de/licenses/gpl-3.0.html +% ---------- +% config: tag-style=$( )$ +% ---------- -\thispagestyle{empty} +\documentclass[twoside]{scrartcl} +\usepackage{fancyhdr} % Für den Seitenkopf und -Fuß +\usepackage{ifpdf} % Erlaubt eine Code-Weiche für PDF, oder DVI Ausgabe +\usepackage{xifthen} % Allgemeine Code-Weiche +\usepackage{graphicx} % Fuer die Einbindung der Logo-Graphik +\usepackage{german} % Deutsche Trenn-Tabelle +\usepackage[utf8]{inputenc} % Umlaute direkt eingeben +\usepackage{textcomp} % Sonderzeichen +\usepackage{lastpage} % Fuer die Angabe "Seite 2 von 5" +\usepackage{filecontents} % Um von latex aus eine Datei schreiben zu koennen +\usepackage{etex} % Damit Marken verwendet werden koennen +\usepackage{ltxtable} % Mehrseiten-Tabellen mit variabler Spaltenbreite +\usepackage{booktabs} % Striche in Tabellen +\usepackage{numprint} % Zahlen formatiert ausgeben +\usepackage[$(if myconfig_output_numberformat =~ "1.000,00")$german$(else)$$(if myconfig_output_numberformat =~ "1000,00")$germannosep$(else)$$(if myconfig_output_numberformat =~ "1,000.00")$english$(else)$englishnosep$(end)$$(end)$$(end)$]{zwischensumme} % Lokales Makro zur Berechnung der Zwischensummen +\usepackage{microtype,relsize} %Feinpositionierung, Sperren von Text +\newcommand*{\sperren}[1]{\normalsize\textls*[200]{#1}} %Sperrung Überrschriften -\newlength{\descrwidth}\setlength{\descrwidth}{10cm} -\setlength{\parindent}{0cm} -\fontfamily{cmss}\fontshape{n}\selectfont +% ---------- Report-Variablen zur Verwendung in kivitendobriefkopf.tex ---------- +% ---------- Die eigenen Daten ---------- +\newcommand{\employeename}{$(employee_name)$} +\newcommand{\employeecompany}{$(employee_company)$} +\newcommand{\employeeaddress}{$(employee_address)$} +\newcommand{\employeetel}{$(employee_tel)$} +\newcommand{\employeefax}{$(employee_fax)$} +\newcommand{\employeeemail}{$(employee_email)$} +\newcommand{\employeecoustid}{$(employee_co_ustid)$} +\newcommand{\employeetaxnumber}{$(employee_taxnumber)$} +\newcommand{\employeetable}{$(template_meta.tmpfile NOESCAPE)$.table.tex} -\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont +% ---------- Eigene Bankverbindung falls nicht im Briefkopf gesetzt ---------- +% \newcommand{\companybank}{$(company_bank)$} +% \newcommand{\companybankcode}{$(company_bank_code)$} +% \newcommand{\companyaccountnumber}{$(company_account_number)$} -\vspace*{1.5cm} +% ---------- Adressat ---------- +\newcommand{\name}{$(name)$} +\newcommand{\departmentone}{$(department_1)$} +\newcommand{\departmenttwo}{$(department_2)$} +\newcommand{\cpgreeting}{$(cp_greeting)$} +\newcommand{\cptitle}{$(cp_title)$} +\newcommand{\cpgivenname}{$(cp_givenname)$} +\newcommand{\cpname}{$(cp_name)$} +\newcommand{\street}{$(street)$} +\newcommand{\country}{$(country)$} +\newcommand{\zipcode}{$(zipcode)$} +\newcommand{\city}{$(city)$} +\newcommand{\phone}{$(customerphone)$} +\newcommand{\fax}{$(customerfax)$} +\newcommand{\lettergreeting}{ + \ifthenelse{\equal{$(cp_gender)$}{f}} + {Sehr geehrte Frau $(cp_name)$,} + {\ifthenelse{\equal{$(cp_gender)$}{m}} + {Sehr geehrter Herr $(cp_name)$,} + {Sehr geehrte Damen und Herren,} + }\\[1\baselineskip] +} -\begin{minipage}{8cm} - <%name%> +% ---------- Bestellvariablen ---------- +\newcommand{\quonumber}{$(quonumber)$} +\newcommand{\docnumber}{Angebot Nr. {\quonumber}} +\newcommand{\quodate}{$(quodate)$} +\newcommand{\kundennummer}{$(customernumber)$} +\newcommand{\reqdate}{$(reqdate)$} - <%street%> +% ---------- Lieferadresse ---------- +\newcommand{\shiptoname}{$(shiptoname)$} +\newcommand{\shiptocontact}{$(shiptocontact)$} +\newcommand{\shiptodepartmentone}{$(shiptodepartment_1)$} +\newcommand{\shiptodepartmenttwo}{$(shiptodepartment_2)$} +\newcommand{\shiptostreet}{$(shiptostreet)$} +\newcommand{\shiptocity}{$(shiptocity)$} +\newcommand{\shiptocountry}{$(shiptocountry)$} +\newcommand{\shiptophone}{$(shiptophone)$} +\newcommand{\shiptozipcode}{$(shiptozipcode)$} +\newcommand{\shiptofax}{$(shiptofax)$} - <%zipcode%> <%city%> +% ---------- Währungszeichen ---------- +\newcommand{\currency}{\euro} +\ifthenelse{\equal{$(currency)$}{YEN}}{\let\currency\textyen}{} +\ifthenelse{\equal{$(currency)$}{GBP}}{\let\currency\pounds}{} +\ifthenelse{\equal{$(currency)$}{USD}}{\let\currency\$}{} - <%country%> -\end{minipage} -\hfill -\begin{minipage}{6cm} - \rightline{\LARGE\textbf{\textit{Angebot}}} - \rightline{\large\textbf{\textit{Nr. <%quonumber%>% - }}} +% ---------- Ende Reportvariablen-Umsetzung ---------- - Datum:\hfill <%transdate%> +% ---------- Briefkopf dazuladen ---------- +\input{kivitendobriefkopf} - Kunden-Nr:\hfill <%customernumber%> - - Telefon:\hfill <%phone%> - - Telefax:\hfill <%fax%> +\begin{document} +% ---------- Schrift Hauptdokuments (Computermodern-sanserif) ---------- +% \fontfamily{cmss}\fontsize{10}{12pt plus 0.12pt minus 0.1pt}\selectfont +% ---------- Schrift Helvetica ------------------------ +\fontfamily{phv}\fontsize{10}{12pt plus 0.12pt minus 0.1pt}\selectfont +% ---------- Firmenlogo nur erste Seite ---------- +\thispagestyle{briefkopf} - Ansprechpartner:\hfill <%employee%> +% ---------- Datum und Nummern ---------- +% Position unterhalb des Briefkopfs +\vspace*{\vlogospacing} +\renewcommand{\arraystretch}{0.9} +\begin{minipage}[b]{177mm} +\sperren{\textbf{Angebot Nr. \quonumber}} +\hfill + \small + \begin{tabular}[b]{r@{\hspace{2mm}}p{\hlogospacing}} + \textbf{Seite} & {\thepage} von \pageref{LastPage}\\ + \textbf{Datum} & \quodate \\ + \nonemptyline{\textbf{Gültig bis} &}{\reqdate} + \textbf{Kunden Nr.} & \kundennummer\\ + \textbf{Angebot Nr.} & \quonumber\\ + \textbf{Ansprechpartner} & \employeename\\ + \nonemptyline{\textbf{Durchwahl} &}{\employeetel} + \nonemptyline{\textbf{E-Mail} &}{\employeeemail} + \end{tabular}\\[10mm plus 20mm minus 10mm] \end{minipage} +\renewcommand{\arraystretch}{1} +\normalsize +% ---------- Begrüßung und Bemerkungen ---------- +\vspace{5mm} +\lettergreeting +wir bedanken uns für Ihre Anfrage und bieten Ihnen gemäß unserer Liefer- und Zahlungsbedingungen hiermit freibleibend die nachfolgenden Positionen an. +\ifthenelse{\isempty{$(notes)$}}{}{ + \newline + $(notes)$ + } +\vspace{5mm} -\vspace*{0.5cm} +% ---------- Die eigentliche-Tabelle ---------- +% ---------- Tabelle puffern ---------- +\begin{filecontents}{\employeetable} +% ---------- globale Variable laufsumme deklarieren ---------- +\resetlaufsumme +% ---------- Spaltendefinition ---------- +%\begin{longtable}{@{}rlX@{ }rlrr@{\makebox[\widthof{\textbf{~\currency}}]}} +\begin{longtable}{@{}rlX@{ }rlrr@{\makebox[\widthof{\textbf{}}]}} +% ---------- Kopfzeile der Tabelle ---------- + \textbf{Pos} & + \textbf{Art.Nr.} & + \textbf{Bezeichnung} & + \textbf{Menge} & + \textbf{ME} & + \textbf{EP/€} & + \textbf{GP/€} \\ + \midrule + \endfirsthead +% ---------- Tabellenkopf nach dem Umbruch ---------- + \textbf{Pos} & + \textbf{Art.Nr.} & + \textbf{Bezeichnung} & + \textbf{Menge} & + \textbf{ME} & + \textbf{EP/€} & + \textbf{GP/€} \\ + \midrule + & & \multicolumn{4}{r}{} & \MarkUebertrPos\\[1.5em] + \endhead +% ---------- Fuss der Teiltabellen ---------- + \midrule + & & \multicolumn{4}{r}{} & \MarkZwsumPos \\ + \endfoot +% ---------- Das Ende der Tabelle ---------- + \midrule +% & & \multicolumn{4}{r}{ Nettobetrag:} & \MarkZwsumPos \\ + \endlastfoot +% ---------- Positionen ---------- + $(foreach number)$ + $(runningnumber)$ & + $(number)$ & + $(description)$ + \ifthenelse{\equal{$(longdescription)$}{}}{}{\newline + \renewcommand{\baselinestretch}{1}\footnotesize + {\footnotesize $(longdescription)$ + \renewcommand{\baselinestretch}{1}\normalsize + }} & + $(qty)$ & + $(unit)$ & + \ifthenelse{\isempty{$(sellprice)$}}{&}{ + \numprint{$(sellprice)$} + \ifthenelse{\equal{$(p_discount)$}{0}}{}{ -$(p_discount)$\%} & + \numprint{$(linetotal)$}\Wert{$(linetotal NOFORMAT)$} + }\\ % + $(end number)$ +\end{longtable} +% ---------- Ende der Hilfsdatei ---------- +\end{filecontents} +% ---------- Puffertabelle öffnen ---------- +\LTXtable{\textwidth}{\employeetable} +%---------- Bereich für die Summen ---------- +\parbox{\textwidth}{ +%---------- Summenbereich nach rechts schieben ---------- \hfill - -\vspace{0.5cm} - -\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%> \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} -\hrule - -\vspace{0.2cm} - -Wir danken für Ihre Anfrage und hoffen, Ihnen hiermit ein interessantes Angebot gemacht zu haben. Das Angebot ist - gültig bis zum <%reqdate%>. Sollten Sie noch Fragen oder Änderungswünsche haben, können Sie uns gerne jederzeit - unter den oben genannten Telefonnummern oder eMail-Adressen kontaktieren. \\ - Bei der Durchführung des Auftrags gelten unsere AGB, die wir Ihnen gerne zuschicken. \\ \\ - Mit freundlichen Grüßen, \\ \\ \\ - <%employee_name%> - - - +\setlength{\tabcolsep}{0mm} +\begin{tabular}{@{}r@{ }r@{ }l} +% \toprule + {Nettobetrag:}& \numprint{$(subtotal)$}& \currency\\ +% ---------- Alle Steuern ausweisen ---------- + $(foreach tax)$ +% {$(taxdescription)$ auf }\numprint{$(taxbase)$}~\currency: & \numprint{$(tax)$}& \\ + {$(taxdescription)$}: & \numprint{$(tax)$}& \currency\\ + $(end tax)$ + \midrule + {\textbf{Gesamtbetrag:}} & \bfseries\numprint{$(ordtotal)$} & \textbf{\currency}\\ + \bottomrule +\end{tabular} +} +% ---------- Nachbemerkung mit variablem Abstand ---------- +\vfil +$(if reqdate)$ +\vspace*{0.3em} +\textbf{Das Angebot ist gültig bis zum \reqdate.}\\ +\vfil +$(end)$ +$(if payment_terms)$ +\textbf{Zahlungsbedingungen:}\hfill\parbox[t]{0.7\textwidth}{$(payment_terms)$}\\ +\vfil +$(end)$ +% ---------- Transportmittel ---------- +$(if shipvia)$ +Lieferung per $(shipvia)$.\\[1em] +$(end)$ +% ---------- Lieferadresse ---------- +\ifthenelse{% + \equal{\shiptoname}{\name} \AND + \equal{\shiptodepartmentone}{\leer} \AND + \equal{\shiptodepartmenttwo}{\leer} \AND + \equal{\shiptostreet}{\street} \AND + \equal{\shiptozipcode}{\zipcode} \AND + \equal{\shiptocity}{\city} + }{}{ +% ---------- Umbruch dazwischen verhindern ---------- +\vspace*{0.5em} +\parbox{\textwidth}{ +% ---------- Bereich für Lieferadresse ---------- +\textbf{Lieferanschrift:}\hfill\parbox[t]{0.7\textwidth}{ + \shiptoname \\ + \nonemptyline{}{\shiptodepartmentone} + \nonemptyline{}{\shiptodepartmenttwo} + \shiptostreet \\ + \shiptocountry{ }\shiptozipcode{ }\shiptocity\\[1mm] + \nonemptyline{Tel: }{\shiptophone} + \nonemptyline{Fax: }{\shiptofax} + }%ende parbox + }% ende parbox +}% ende ifthenelse +\vspace*{0.5em} +\parbox{\textwidth}{ +Sollten Sie Fragen zu unserem Angebot haben, steht Ihnen \employeename \ per Telefon (\employeetel) oder per E-Mail (\employeeemail) gerne zur Verfügung. +Wir hoffen, dass unser Angebot Ihre Zustimmung findet und würden uns freuen Ihren Auftrag zu erhalten.\par +\vspace{1.5\baselineskip} +Mit freundlichen Grüßen\\ \vfil +\employeename +}% Ende parbox +%\vspace{1.5\baselineskip} +\vfill +\textbf{Wollen Sie direkt bestellen?}\\[1.2em] +\small{Machen Sie durch Ihren Stempel und Ihre Unterschrift unser Angebot Nr. \quonumber \ zum Auftrag.}\\[1.2em] +\vspace{2.5\baselineskip}\\ +\rule{20em}{0.1pt}\\ +\hspace*{5em}Datum, Unterschrift \\ +\vfill +\footnotesize +Es gelten unsere Liefer- und Zahlungsbedingungen, die wir Ihnen auf Wunsch gerne zukommen lassen. \end{document} -