Revision 2336386b
Von Marei (peiTeX) vor etwa 4 Jahren hinzugefügt
templates/print/marei/credit_note.tex | ||
---|---|---|
70 | 70 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
71 | 71 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
72 | 72 |
\opening{ |
73 |
\ifstr{<%cp_name%>}{}
|
|
73 |
\Ifstr{<%cp_name%>}{}
|
|
74 | 74 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
75 | 75 |
{ |
76 |
\ifstr{<%cp_gender%>}{f}
|
|
76 |
\Ifstr{<%cp_gender%>}{f}
|
|
77 | 77 |
{\anredefrau} |
78 | 78 |
{\anredeherr} |
79 | 79 |
<%cp_title%> <%cp_name%>, |
... | ... | |
98 | 98 |
&% |
99 | 99 |
<%qty%> <%unit%> &% |
100 | 100 |
<%sellprice%>&% |
101 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
101 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
102 | 102 |
<%linetotal%>\tabularnewline% |
103 | 103 |
<%end number%>% |
104 | 104 |
}% |
templates/print/marei/insettings.tex | ||
---|---|---|
3 | 3 |
\ProvidesFile{insettings.tex}[2019/12/22 Konfigurationsdatei kivitendo ERP] |
4 | 4 |
% Sprachüberprüfung |
5 | 5 |
\RequirePackage[english, ngerman]{babel} |
6 |
\ifstr{\lxlangcode}{EN}{
|
|
6 |
\Ifstr{\lxlangcode}{EN}{
|
|
7 | 7 |
\makeatletter |
8 | 8 |
\main@language{english} |
9 | 9 |
\makeatother |
10 | 10 |
\input{english.tex}}{ |
11 |
\ifstr{\lxlangcode}{DE}{
|
|
11 |
\Ifstr{\lxlangcode}{DE}{
|
|
12 | 12 |
\makeatletter |
13 | 13 |
\main@language{ngerman} |
14 | 14 |
\makeatother |
... | ... | |
91 | 91 |
\ifnum\thepage=1 |
92 | 92 |
\else |
93 | 93 |
\makebox[\textwidth]{ |
94 |
\ifstr{#1}{}{}{#1: #2 \hspace{0.7cm}}
|
|
94 |
\Ifstr{#1}{}{}{#1: #2 \hspace{0.7cm}}
|
|
95 | 95 |
#3 |
96 |
\ifstr{#4}{}{}{~\nr: #4}
|
|
97 |
\ifstr{#5}{}{}{\vom ~ #5}
|
|
96 |
\Ifstr{#4}{}{}{~\nr: #4}
|
|
97 |
\Ifstr{#5}{}{}{\vom ~ #5}
|
|
98 | 98 |
\hspace{0.7cm} - \seite ~ \thepage/\letterlastpage ~-% |
99 | 99 |
} |
100 | 100 |
\fi |
... | ... | |
116 | 116 |
\strasse & \homepage & \textBank & \bank \\ |
117 | 117 |
\ort & \textUstid\ \ustid & \textIban & \iban \\ |
118 | 118 |
\textTelefon~\telefon & \finanzamt & \textBic & \bic \\ |
119 |
\ifstr{\fax}{}{}{\textFax~\fax} & &\textBankleitzahl & \bankleitzahl
|
|
119 |
\Ifstr{\fax}{}{}{\textFax~\fax} & &\textBankleitzahl & \bankleitzahl
|
|
120 | 120 |
\end{tabular*} |
121 | 121 |
\end{lrbox} |
122 | 122 |
|
templates/print/marei/invoice.tex | ||
---|---|---|
77 | 77 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
78 | 78 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
79 | 79 |
\opening{ |
80 |
\ifstr{<%cp_name%>}{}
|
|
80 |
\Ifstr{<%cp_name%>}{}
|
|
81 | 81 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
82 | 82 |
{ |
83 |
\ifstr{<%cp_gender%>}{f}
|
|
83 |
\Ifstr{<%cp_gender%>}{f}
|
|
84 | 84 |
{\anredefrau} |
85 | 85 |
{\anredeherr} |
86 | 86 |
<%cp_title%> <%cp_name%>, |
... | ... | |
121 | 121 |
&% |
122 | 122 |
<%qty%> <%unit%> &% |
123 | 123 |
<%sellprice%>&% |
124 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
124 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
125 | 125 |
<%linetotal%>\tabularnewline% |
126 | 126 |
<%end number%>% |
127 | 127 |
}% |
... | ... | |
137 | 137 |
|
138 | 138 |
\vspace{0.2cm} |
139 | 139 |
|
140 |
\ifstr{<%deliverydate%>}{}{}{%
|
|
140 |
\Ifstr{<%deliverydate%>}{}{}{%
|
|
141 | 141 |
\leistungsdatumGleichRechnungsdatum% |
142 | 142 |
}{ |
143 | 143 |
\lieferungErfolgtAm ~<%deliverydate%>. |
templates/print/marei/kiviletter.sty | ||
---|---|---|
438 | 438 |
|
439 | 439 |
\if@kivi@infobox |
440 | 440 |
\setkomavar{location}{ |
441 |
\ifkomavarempty{transaction}{}{
|
|
441 |
\Ifkomavarempty{transaction}{}{
|
|
442 | 442 |
\bfseries |
443 | 443 |
\usekomavar{transaction} |
444 | 444 |
} |
... | ... | |
446 | 446 |
\medskip |
447 | 447 |
\begin{tabularx}{\useplength{locwidth}}{@{}l<{:}>{\raggedleft\arraybackslash}X@{}} |
448 | 448 |
\usekomavar*{date}&\usekomavar{date}\\ |
449 |
\ifkomavarempty{myref}{}{
|
|
449 |
\Ifkomavarempty{myref}{}{
|
|
450 | 450 |
\usekomavar*{myref}&\usekomavar{myref}\\ |
451 | 451 |
} |
452 | 452 |
\kundennummer&\usekomavar{customer}\\ |
453 |
\ifkomavarempty{yourref}{}{
|
|
453 |
\Ifkomavarempty{yourref}{}{
|
|
454 | 454 |
\usekomavar*{yourref}&\usekomavar{yourref}\\ |
455 | 455 |
} |
456 |
\ifkomavarempty{delivery}{}{
|
|
456 |
\Ifkomavarempty{delivery}{}{
|
|
457 | 457 |
\usekomavar*{delivery}&\usekomavar{delivery}\\ |
458 | 458 |
} |
459 |
\ifkomavarempty{quote}{}{
|
|
459 |
\Ifkomavarempty{quote}{}{
|
|
460 | 460 |
\usekomavar*{quote}&\usekomavar{quote}\\ |
461 | 461 |
} |
462 |
\ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\}
|
|
463 |
\ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\}
|
|
462 |
\Ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\}
|
|
463 |
\Ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\}
|
|
464 | 464 |
\ansprechpartner&\usekomavar{fromname} |
465 |
\ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
|
|
466 |
\ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}}
|
|
465 |
\Ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
|
|
466 |
\Ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}}
|
|
467 | 467 |
\end{tabularx} |
468 | 468 |
} |
469 | 469 |
\removereffields |
... | ... | |
473 | 473 |
\@addtoplength{refvpos}{4\baselineskip}%sep between address boxes |
474 | 474 |
\fi |
475 | 475 |
} |
476 |
\ExplSyntaxOff |
|
476 |
|
|
477 | 477 |
\fi |
478 | 478 |
|
479 |
%Fallback for older KOMA-Script-Versions |
|
480 |
\cs_if_exist:NF \Ifstr {\let\Ifstr\ifstr} |
|
481 |
\cs_if_exist:NF \Ifkomavarempty {\let\Ifkomavarempty\ifkomavarempty} |
|
479 | 482 |
|
483 |
\ExplSyntaxOff |
|
480 | 484 |
|
481 | 485 |
\renewcommand*{\raggedsignature}{\raggedright} |
482 | 486 |
|
templates/print/marei/proforma.tex | ||
---|---|---|
71 | 71 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
72 | 72 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
73 | 73 |
\opening{ |
74 |
\ifstr{<%cp_name%>}{}
|
|
74 |
\Ifstr{<%cp_name%>}{}
|
|
75 | 75 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
76 | 76 |
{ |
77 |
\ifstr{<%cp_gender%>}{f}
|
|
77 |
\Ifstr{<%cp_gender%>}{f}
|
|
78 | 78 |
{\anredefrau} |
79 | 79 |
{\anredeherr} |
80 | 80 |
<%cp_title%> <%cp_name%>, |
... | ... | |
99 | 99 |
&% |
100 | 100 |
<%qty%> <%unit%> &% |
101 | 101 |
<%sellprice%>&% |
102 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
102 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
103 | 103 |
<%linetotal%>\tabularnewline% |
104 | 104 |
<%end number%>% |
105 | 105 |
}% |
templates/print/marei/purchase_order.tex | ||
---|---|---|
74 | 74 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
75 | 75 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
76 | 76 |
\opening{ |
77 |
\ifstr{<%cp_name%>}{}
|
|
77 |
\Ifstr{<%cp_name%>}{}
|
|
78 | 78 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
79 | 79 |
{ |
80 |
\ifstr{<%cp_gender%>}{f}
|
|
80 |
\Ifstr{<%cp_gender%>}{f}
|
|
81 | 81 |
{\anredefrau} |
82 | 82 |
{\anredeherr} |
83 | 83 |
<%cp_title%> <%cp_name%>, |
... | ... | |
102 | 102 |
&% |
103 | 103 |
<%qty%> <%unit%> &% |
104 | 104 |
<%sellprice%>&% |
105 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
105 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
106 | 106 |
<%linetotal%>\tabularnewline |
107 | 107 |
<%end number%>% |
108 | 108 |
}% |
templates/print/marei/request_quotation.tex | ||
---|---|---|
47 | 47 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
48 | 48 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
49 | 49 |
\opening{ |
50 |
\ifstr{<%cp_name%>}{}
|
|
50 |
\Ifstr{<%cp_name%>}{}
|
|
51 | 51 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
52 | 52 |
{ |
53 |
\ifstr{<%cp_gender%>}{f}
|
|
53 |
\Ifstr{<%cp_gender%>}{f}
|
|
54 | 54 |
{\anredefrau} |
55 | 55 |
{\anredeherr} |
56 | 56 |
<%cp_title%> <%cp_name%>, |
... | ... | |
71 | 71 |
<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>% |
72 | 72 |
<%if make%>% |
73 | 73 |
<%foreach make%>% |
74 |
\ifstr{<%make%>}{<%name%>}{\ExtraDescription{\artikelnummer: <%model%>}}{}
|
|
74 |
\Ifstr{<%make%>}{<%name%>}{\ExtraDescription{\artikelnummer: <%model%>}}{}
|
|
75 | 75 |
<%end foreach%>% |
76 | 76 |
<%end if%>% |
77 | 77 |
\tabularnewline |
templates/print/marei/sales_delivery_order.tex | ||
---|---|---|
43 | 43 |
\begin{document} |
44 | 44 |
|
45 | 45 |
\begin{letter}{ |
46 |
\ifstr{<%shiptoname%>}{}{ % KEINE ABWEICHENDE LIEFERADRESSE
|
|
46 |
\Ifstr{<%shiptoname%>}{}{ % KEINE ABWEICHENDE LIEFERADRESSE
|
|
47 | 47 |
<%name%>\strut\\ |
48 | 48 |
<%if department_1%><%department_1%>\\<%end if%>% |
49 | 49 |
<%if department_2%><%department_2%>\\<%end if%>% |
templates/print/marei/sales_order.tex | ||
---|---|---|
74 | 74 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
75 | 75 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
76 | 76 |
\opening{ |
77 |
\ifstr{<%cp_name%>}{}
|
|
77 |
\Ifstr{<%cp_name%>}{}
|
|
78 | 78 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
79 | 79 |
{ |
80 |
\ifstr{<%cp_gender%>}{f}
|
|
80 |
\Ifstr{<%cp_gender%>}{f}
|
|
81 | 81 |
{\anredefrau} |
82 | 82 |
{\anredeherr} |
83 | 83 |
<%cp_title%> <%cp_name%>, |
... | ... | |
102 | 102 |
&% |
103 | 103 |
<%qty%> <%unit%> &% |
104 | 104 |
<%sellprice%>&% |
105 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
105 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
106 | 106 |
<%linetotal%>\tabularnewline |
107 | 107 |
<%end number%>% |
108 | 108 |
}% |
templates/print/marei/sales_quotation.tex | ||
---|---|---|
74 | 74 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
75 | 75 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
76 | 76 |
\opening{ |
77 |
\ifstr{<%cp_name%>}{}
|
|
77 |
\Ifstr{<%cp_name%>}{}
|
|
78 | 78 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
79 | 79 |
{ |
80 |
\ifstr{<%cp_gender%>}{f}
|
|
80 |
\Ifstr{<%cp_gender%>}{f}
|
|
81 | 81 |
{\anredefrau} |
82 | 82 |
{\anredeherr} |
83 | 83 |
<%cp_title%> <%cp_name%>, |
... | ... | |
103 | 103 |
&% |
104 | 104 |
<%qty%> <%unit%> &% |
105 | 105 |
<%sellprice%>&% |
106 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
106 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
107 | 107 |
<%linetotal%>\tabularnewline |
108 | 108 |
<%end number%>% |
109 | 109 |
} |
templates/print/marei/statement.tex | ||
---|---|---|
41 | 41 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
42 | 42 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
43 | 43 |
\opening{ |
44 |
\ifstr{<%cp_name%>}{}
|
|
44 |
\Ifstr{<%cp_name%>}{}
|
|
45 | 45 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
46 | 46 |
{ |
47 |
\ifstr{<%cp_gender%>}{f}
|
|
47 |
\Ifstr{<%cp_gender%>}{f}
|
|
48 | 48 |
{\anredefrau} |
49 | 49 |
{\anredeherr} |
50 | 50 |
<%cp_title%> <%cp_name%>, |
templates/print/marei/zahlungserinnerung.tex | ||
---|---|---|
42 | 42 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
43 | 43 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
44 | 44 |
\opening{ |
45 |
\ifstr{<%cp_name%>}{}
|
|
45 |
\Ifstr{<%cp_name%>}{}
|
|
46 | 46 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
47 | 47 |
{ |
48 |
\ifstr{<%cp_gender%>}{f}
|
|
48 |
\Ifstr{<%cp_gender%>}{f}
|
|
49 | 49 |
{\anredefrau} |
50 | 50 |
{\anredeherr} |
51 | 51 |
<%cp_title%> <%cp_name%>, |
templates/print/marei/zahlungserinnerung_invoice.tex | ||
---|---|---|
48 | 48 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
49 | 49 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
50 | 50 |
\opening{ |
51 |
\ifstr{<%cp_name%>}{}
|
|
51 |
\Ifstr{<%cp_name%>}{}
|
|
52 | 52 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
53 | 53 |
{ |
54 |
\ifstr{<%cp_gender%>}{f}
|
|
54 |
\Ifstr{<%cp_gender%>}{f}
|
|
55 | 55 |
{\anredefrau} |
56 | 56 |
{\anredeherr} |
57 | 57 |
<%cp_title%> <%cp_name%>, |
Auch abrufbar als: Unified diff
marei: new koma-names + fallback for outdated versions