From: Marei (peiTeX) Date: Sun, 27 Sep 2020 20:56:20 +0000 (+0200) Subject: marei: ifkomascriptempty upate and fallback X-Git-Tag: kivitendo-mebil_0.1-0~9^2~698 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=71650e021a03cba1340dd5aa5d6a643a65a1341e;p=kivitendo-erp.git marei: ifkomascriptempty upate and fallback --- diff --git a/templates/print/marei/kiviletter.sty b/templates/print/marei/kiviletter.sty index cce6ebec6..44fe651db 100644 --- a/templates/print/marei/kiviletter.sty +++ b/templates/print/marei/kiviletter.sty @@ -424,7 +424,7 @@ contents={\usebox\shippingAddressBox} \if@kivi@infobox \setkomavar{location}{ - \ifkomavarempty{transaction}{}{ + \Ifkomavarempty{transaction}{}{ \bfseries \usekomavar{transaction} } @@ -432,24 +432,24 @@ contents={\usebox\shippingAddressBox} \medskip \begin{tabularx}{\useplength{locwidth}}{@{}l<{:}>{\raggedleft\arraybackslash}X@{}} \usekomavar*{date}&\usekomavar{date}\\ - \ifkomavarempty{myref}{}{ + \Ifkomavarempty{myref}{}{ \usekomavar*{myref}&\usekomavar{myref}\\ } \kundennummer&\usekomavar{customer}\\ - \ifkomavarempty{yourref}{}{ + \Ifkomavarempty{yourref}{}{ \usekomavar*{yourref}&\usekomavar{yourref}\\ } - \ifkomavarempty{delivery}{}{ + \Ifkomavarempty{delivery}{}{ \usekomavar*{delivery}&\usekomavar{delivery}\\ } - \ifkomavarempty{quote}{}{ + \Ifkomavarempty{quote}{}{ \usekomavar*{quote}&\usekomavar{quote}\\ } - \ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\} - \ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\} + \Ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\} + \Ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\} \ansprechpartner&\usekomavar{fromname} - \ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}} - \ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}} + \Ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}} + \Ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}} \end{tabularx} } \removereffields @@ -462,6 +462,12 @@ contents={\usebox\shippingAddressBox} \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