-\if@kivi@infobox
-\setkomavar{location}{
- \ifkomavarempty{transaction}{}{
- \bfseries
- \usekomavar{transaction}
- }
- \par
- \medskip
- \begin{tabularx}{\useplength{locwidth}}{@{}l<{:}>{\raggedleft\arraybackslash}X@{}}
- \usekomavar*{date}&\usekomavar{date}\\
- \ifkomavarempty{myref}{}{
- \usekomavar*{myref}&\usekomavar{myref}\\
- }
- \kundennummer&\usekomavar{customer}\\
- \ifkomavarempty{yourref}{}{
- \usekomavar*{yourref}&\usekomavar{yourref}\\
- }
- \ifkomavarempty{delivery}{}{
- \usekomavar*{delivery}&\usekomavar{delivery}\\
- }
- \ifkomavarempty{quote}{}{
- \usekomavar*{quote}&\usekomavar{quote}\\
- }
- \ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\}
- \ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\}
- \ansprechpartner&\usekomavar{fromname}
- \ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
- \ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}}
- \end{tabularx}
+\fi
+
+%Fallback for older KOMA-Script-Versions
+\cs_if_exist:NF \Ifstr {\let\Ifstr\ifstr}
+\cs_if_exist:NF \Ifkomavarempty {\let\Ifkomavarempty\ifkomavarempty}
+
+%Definitionen für die insettings.tex
+
+\newcommand*{\setupIdentpath}[1]{
+ \int_set:Nn \l_kivi_tmp_int {1}
+ \bool_set_true:N \l_kivi_tmp_bool
+ \bool_while_do:Nn \l_kivi_tmp_bool {
+ \file_if_exist:nTF {firma\int_use:N \l_kivi_tmp_int/ident.tex}
+ {
+ \exp_args:Nf \str_if_in:nnTF {#1} {Firma\int_use:N \l_kivi_tmp_int}
+ {
+ \newcommand*{\identpath}{firma\int_use:N \l_kivi_tmpa_int}
+ \bool_set_false:N \l_kivi_tmp_bool
+ }
+ {\int_incr:N \l_kivi_tmp_int}
+ }
+ {
+ \bool_set_false:N \l_kivi_tmp_bool
+ \newcommand*{\identpath}{firma}
+ }
+ }
+}
+
+\newcommand*{\setupCurrencyConfig}[3][euro]{
+ \tl_new:N \g_kivi_currency_tl
+ \exp_args:Nf \str_if_in:nnT {#3} {USD} {\tl_gset:Nn \g_kivi_currency_tl {usd}}
+ \exp_args:Nf \str_if_in:nnT {#3} {CHF} {\tl_gset:Nn \g_kivi_currency_tl {chf}}
+ \exp_args:Nf \str_if_in:nnT {#3} {EUR} {\tl_gset:Nn \g_kivi_currency_tl {euro}}
+ \tl_if_empty:NT \g_kivi_currency_tl {
+ \tl_if_empty:oTF {#3} {
+ \tl_gset:Nn \g_kivi_currency_tl {#1}
+ } {
+ \tl_gset:Nn \g_kivi_currency_tl {#3}
+ }
+ }
+ \input{#2/\g_kivi_currency_tl _account.tex}
+ \let\setupCurrencyConfig\_kivi_currency_already_configured:w