add komavar delivery/empty/myref/yourref
authorMarei Peischl <marei@peitex.de>
Sun, 22 Dec 2019 18:04:31 +0000 (19:04 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
kiviletter.sty

index 092bf2b..0bcf746 100644 (file)
@@ -42,6 +42,8 @@
 \LoadLetterOption{DIN}
 
 \newkomavar{transaction}
+\newkomavar[\lieferschein{}~\nr]{delivery}
+\newkomavar[\angebot{}~\nr]{quote}
 
 \usepackage{geometry}
 
@@ -295,7 +297,19 @@ align=bl,
        \medskip
        \begin{tabularx}{\linewidth}{@{}l<{:}>{\raggedright\arraybackslash}X@{}}
                \usekomavar*{date}&\usekomavar{date}\\
+               \ifkomavarempty{myref}{}{
+                       \usekomavar*{myref}&\usekomavar{myref}\\
+               }
                \kundennummer&\usekomavar{customer}\\
+               \ifkomavarempty{yourref}{}{
+                       \usekomavar*{yourref}&\usekomavar{yourref}\\
+               }
+               \ifkomavarempty{delivery}{}{
+                       \usekomavar*{delivery}&\usekomavar{delivery}\\
+               }
+               \ifkomavarempty{quote}{}{
+                       \usekomavar*{quote}&\usekomavar{quote}\\
+               }
                \ansprechpartner&\usekomavar{fromname}
                \ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
                \ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}}