From df858a8df1850c319922e9ccf2ab72c5490b396e Mon Sep 17 00:00:00 2001
From: Marei Peischl <marei@peitex.de>
Date: Sun, 22 Dec 2019 18:25:13 +0100
Subject: [PATCH] simplify date variable

---
 kiviletter.sty      | 2 +-
 sales_quotation.tex | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/kiviletter.sty b/kiviletter.sty
index 98d0e6440..092bf2b63 100644
--- a/kiviletter.sty
+++ b/kiviletter.sty
@@ -294,7 +294,7 @@ align=bl,
 	\par
 	\medskip
 	\begin{tabularx}{\linewidth}{@{}l<{:}>{\raggedright\arraybackslash}X@{}}
-		\datum&\usekomavar{date}\\
+		\usekomavar*{date}&\usekomavar{date}\\
 		\kundennummer&\usekomavar{customer}\\
 		\ansprechpartner&\usekomavar{fromname}
 		\ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
diff --git a/sales_quotation.tex b/sales_quotation.tex
index fc9348653..06eb3f47a 100644
--- a/sales_quotation.tex
+++ b/sales_quotation.tex
@@ -1,4 +1,3 @@
-\PassOptionsToPackage{faketable}{kiviletter}
 \input{inheaders.tex}
 
 
@@ -24,6 +23,8 @@
 <%salesman_name%>%
 }
 
+\setkomavar*{date}{\datum}
+
 \setkomavar{date}{<%transdate%>}
 \setkomavar{customer}{<%customernumber%>}
 \setkomavar{fromname}{<%employee_name%>}
@@ -33,6 +34,7 @@
 	\angebot~
 	\nr ~<%quonumber%>
 }
+
 \setkomavar{transaction}{<%transaction_description%>}
 
 <%if shiptoname%>
-- 
2.20.1