\begin{document}
\begin{letter}{
- <%name%>\strut\\
- <%if department_1%><%department_1%>\\<%end if%>%
- <%if department_2%><%department_2%>\\<%end if%>%
- <%cp_givenname%> <%cp_name%>\strut\\
- <%street%>\strut\\
- <%zipcode%> <%city%>\strut\\
- <%country%> \strut
- }
+<%name%>\strut\\
+<%if department_1%><%department_1%>\\<%end if%>%
+<%if department_2%><%department_2%>\\<%end if%>%
+<%cp_givenname%> <%cp_name%>\strut\\
+<%street%>\strut\\
+<%zipcode%> <%city%>\strut\\
+<%country%> \strut
+}
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
\opening{
- \Ifstr{<%cp_name%>}{}
- {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
- {
- \Ifstr{<%cp_gender%>}{f}
- {\anredefrau}
- {\anredeherr}
- <%cp_title%> <%cp_name%>,
- }
- }
+\Ifstr{<%cp_name%>}{}
+{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
+ {
+ \Ifstr{<%cp_gender%>}{f}
+ {\anredefrau}
+ {\anredeherr}
+ <%cp_title%> <%cp_name%>,
+ }
+ }
\thispagestyle{kivitendo.letter.first}
\gutschriftformel
\begin{PricingTabular*}%
-% eigentliche Tabelle%
-\FakeTable{%
- <%foreach number%>%
- <%runningnumber%> &%
- <%number%> &%
- \textbf{<%description%>}%
- <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
- <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
- <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
- <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
- &%
- <%qty%> <%unit%> &%
- <%sellprice%>&%
- \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
- <%linetotal%>\tabularnewline%
- <%end number%>%
- }%
- \begin{PricingTotal}%
- % Tabellenende letzte Seite
- \nettobetrag & <%subtotal%>\\%
- <%foreach tax%>%
- <%taxdescription%> & <%tax%>\\%
- <%end tax%>%
- \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\%
- \end{PricingTotal}%
+ % eigentliche Tabelle%
+ \FakeTable{%
+ <%foreach number%>%
+ <%runningnumber%> &%
+ <%number%> &%
+ \textbf{<%description%>}%
+ <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
+ <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
+ <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
+ <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
+ &%
+ <%qty%> <%unit%> &%
+ <%sellprice%>&%
+ \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
+ <%linetotal%>\tabularnewline%
+ <%end number%>%
+ }%
+ \begin{PricingTotal}%
+ % Tabellenende letzte Seite
+ \nettobetrag & <%subtotal%>\\%
+ <%foreach tax%>%
+ <%taxdescription%> & <%tax%>\\%
+ <%end tax%>%
+ \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\%
+ \end{PricingTotal}%
\end{PricingTabular*}
<%if notes%>%