initialize default account information
authorMarei Peischl <marei@peitex.de>
Sun, 22 Dec 2019 13:33:09 +0000 (14:33 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
firma/default_account.tex [new file with mode: 0644]
insettings.tex

diff --git a/firma/default_account.tex b/firma/default_account.tex
new file mode 100644 (file)
index 0000000..e436c3d
--- /dev/null
@@ -0,0 +1,6 @@
+\newcommand{\kontonummer}{4071953800}
+\newcommand{\bank}{GLS Bank eG}
+\newcommand{\bankleitzahl}{430 609 67}
+\newcommand{\bic}{DE50430609674071953800}
+\newcommand{\iban}{GENODEM1GLS}
+%Keine Definition von \currency!
index 3b9bc3a..1792914 100644 (file)
 \str_if_in:NnT \lxcurrency {USD} {\tl_gset:Nn \g_kivi_currency_tl {usd}}
 \str_if_in:NnT \lxcurrency {CHF} {\tl_gset:Nn \g_kivi_currency_tl {chf}}
 \str_if_in:NnT \lxcurrency {EUR} {\tl_gset:Nn \g_kivi_currency_tl {euro}}
-\tl_if_empty:NTF  \g_kivi_currency_tl {
-       \str_gset_eq:NN  \g_kivi_currency_tl  \lxcurrency
-       \input{\identpath/euro_account.tex}
-       \let\currency\g_kivi_currency_tl
-}{
-       \input{\identpath/\g_kivi_currency_tl _account.tex}
+\tl_if_empty:NT  \g_kivi_currency_tl {
+       \tl_gset:Nn \g_kivi_currency_tl {default}
+       \edef \currency {\tl_to_str:N \lxcurrency}
 }
+
+\input{\identpath/\g_kivi_currency_tl _account.tex}
+
 \ExplSyntaxOff