From 4f107f67d17eefaa680fc154e990b22cf8d1d659 Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Sun, 22 Dec 2019 14:33:09 +0100 Subject: [PATCH] initialize default account information --- firma/default_account.tex | 6 ++++++ insettings.tex | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 firma/default_account.tex diff --git a/firma/default_account.tex b/firma/default_account.tex new file mode 100644 index 000000000..e436c3dc4 --- /dev/null +++ b/firma/default_account.tex @@ -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! diff --git a/insettings.tex b/insettings.tex index 3b9bc3a8f..17929142e 100644 --- a/insettings.tex +++ b/insettings.tex @@ -54,13 +54,13 @@ \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 -- 2.20.1