Revision 9d8ef337
Von Marei Peischl vor fast 3 Jahren hinzugefügt
templates/print/marei/insettings.tex | ||
---|---|---|
1 | 1 |
%% insettings.tex |
2 |
%% Copyright 2019 Marei Peischl |
|
3 |
\ProvidesFile{insettings.tex}[2019/12/22 Konfigurationsdatei kivitendo ERP]
|
|
2 |
%% Copyright 2019–2022 Marei Peischl
|
|
3 |
\ProvidesFile{insettings.tex}[2022/02/23 Konfigurationsdatei kivitendo ERP]
|
|
4 | 4 |
% Sprachüberprüfung |
5 | 5 |
\RequirePackage[english, ngerman]{babel} |
6 | 6 |
|
... | ... | |
34 | 34 |
|
35 | 35 |
% Währungen/Konten |
36 | 36 |
% Die Konfiguration bedindet sich in der Datei |
37 |
% \identpath/<euro/chf/usd/default>_account.tex |
|
37 |
% \identpath/<euro/chf/usd>_account.tex |
|
38 |
% das optionale Argument ist als euro vorbelegt und gibt die Einstellung an, falls \lxcurrency nicht von kivitendo übergeben wird. |
|
38 | 39 |
|
39 |
\@ifundefined{lxcurrency}{}{ |
|
40 |
\setupCurrencyConfig{\identpath}{\lxcurrency} |
|
41 |
} |
|
40 |
\setupCurrencyConfig[euro]{\identpath}{\lxcurrency} |
|
42 | 41 |
|
43 | 42 |
|
44 | 43 |
% Befehl f. normale Schriftart und -größe |
templates/print/marei/kiviletter.sty | ||
---|---|---|
1 | 1 |
\NeedsTeXFormat{LaTeX2e} |
2 |
\ProvidesPackage{kiviletter}[2020/04/24 Letter Layouts for Kivitendo]
|
|
2 |
\ProvidesPackage{kiviletter}[2022/04/23 Letter Layouts for Kivitendo]
|
|
3 | 3 |
|
4 | 4 |
\RequirePackage{l3keys2e} |
5 | 5 |
|
... | ... | |
642 | 642 |
} |
643 | 643 |
} |
644 | 644 |
|
645 |
\newcommand*{\setupCurrencyConfig}[2]{
|
|
645 |
\newcommand*{\setupCurrencyConfig}[3][euro]{
|
|
646 | 646 |
\tl_new:N \g_kivi_currency_tl |
647 |
\exp_args:Nf \str_if_in:nnT {#2} {USD} {\tl_gset:Nn \g_kivi_currency_tl {usd}}
|
|
648 |
\exp_args:Nf \str_if_in:nnT {#2} {CHF} {\tl_gset:Nn \g_kivi_currency_tl {chf}}
|
|
649 |
\exp_args:Nf \str_if_in:nnT {#2} {EUR} {\tl_gset:Nn \g_kivi_currency_tl {euro}}
|
|
647 |
\exp_args:Nf \str_if_in:nnT {#3} {USD} {\tl_gset:Nn \g_kivi_currency_tl {usd}}
|
|
648 |
\exp_args:Nf \str_if_in:nnT {#3} {CHF} {\tl_gset:Nn \g_kivi_currency_tl {chf}}
|
|
649 |
\exp_args:Nf \str_if_in:nnT {#3} {EUR} {\tl_gset:Nn \g_kivi_currency_tl {euro}}
|
|
650 | 650 |
\tl_if_empty:NT \g_kivi_currency_tl { |
651 |
\tl_gset:Nn \g_kivi_currency_tl {euro} % euro ist standard, chf oder usd alternativ |
|
651 |
\tl_if_empty:nTF {#3} { |
|
652 |
\tl_gset:Nn \g_kivi_currency_tl {#1} |
|
653 |
} { |
|
654 |
\tl_gset:Nn \g_kivi_currency_tl {#3} |
|
655 |
} |
|
652 | 656 |
} |
653 |
\input{#1/\g_kivi_currency_tl _account.tex} |
|
657 |
\input{#2/\g_kivi_currency_tl _account.tex} |
|
658 |
\let\setupCurrencyConfig\_kivi_currency_already_configured:w |
|
659 |
} |
|
660 |
|
|
661 |
\newcommand*{\_kivi_currency_already_configured:w}[3][euro]{ |
|
662 |
\msg_error:nnx {kiviletter} {currency-already-configured} {\g_kivi_currency_tl} |
|
654 | 663 |
} |
655 | 664 |
|
665 |
\msg_new:nnn {kiviletter} {currency-already-configured} { |
|
666 |
The~currency~configuration~is~a~global~setting~for~each~document.\\ |
|
667 |
It's~already~set~to~#1,~please~remove~the~second~call~of~\string\setupCurrencyConfig. |
|
668 |
} |
|
656 | 669 |
\ExplSyntaxOff |
657 | 670 |
|
658 | 671 |
|
Auch abrufbar als: Unified diff
marei: Währungsvoreinstellung Euro + option zur Anpassung in insettings