From: Marei Peischl Date: Sun, 22 Dec 2019 13:28:47 +0000 (+0100) Subject: use string if currency unknown X-Git-Tag: release-3.5.6.1~302 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3351b71d79ddf8326aecdfca5fb579dc9db85458;p=kivitendo-erp.git use string if currency unknown --- diff --git a/insettings.tex b/insettings.tex index a1ce1607e..3b9bc3a8f 100644 --- a/insettings.tex +++ b/insettings.tex @@ -53,11 +53,14 @@ \tl_new:N \g_kivi_currency_tl \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}} -\tl_if_empty:NT \g_kivi_currency_tl {\tl_gset:Nn \g_kivi_currency_tl {euro}} -% wenn er es nicht kennt dann text übernehmen. -% Problematisch mit Dateistruktur - -\input{\identpath/\g_kivi_currency_tl _account.tex} +\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} +} \ExplSyntaxOff