X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=insettings.tex;h=cd7c53153439547e06192f3f4de31c6de55eb889;hb=010c8d1e9af797f5223ef083d5653e8aae03fabf;hp=5f3534a5bea1ece75c248bb85486cf4e1fabacd4;hpb=87de3d3653fb5e234f2efae674392859f7fb0c9c;p=kivitendo-erp.git diff --git a/insettings.tex b/insettings.tex index 5f3534a5b..cd7c53153 100644 --- a/insettings.tex +++ b/insettings.tex @@ -1,3 +1,6 @@ +%% insettings.tex +%% Copyright 2019 Marei Peischl +\ProvidesFile{insettings.tex}[2019/12/22 Konfigurationsdatei kivitendo ERP] % Sprachüberprüfung \RequirePackage[english, ngerman]{babel} \ifstr{\lxlangcode}{EN}{ @@ -47,21 +50,20 @@ \ExplSyntaxOn %Setze Briefkopf-logo falls vorhanden -\file_if_exist:nT {\identpath/briefkopf.png} { - \setkomavar{fromlogo}{ - \includegraphics[width=.25\linewidth]{\identpath/briefkopf.png} - } -} +\setkomavar{fromlogo}{\includegraphics[width=.25\linewidth]{\identpath/briefkopf}} % Währungen/Konten \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 +\str_if_in:NnT \lxcurrency {EUR} {\tl_gset:Nn \g_kivi_currency_tl {euro}} +\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 @@ -113,3 +115,5 @@ \end{tabular} } } + +\endinput \ No newline at end of file