Revision 5a6899d2
Von Werner Hahn vor fast 2 Jahren hinzugefügt
templates/print/marei/deutsch.tex | ||
---|---|---|
72 | 72 |
% lieferschein (sales_delivery_order) |
73 | 73 |
\newcommand{\lieferschein} {Lieferschein} |
74 | 74 |
|
75 |
% verkaufsreklamationen (sales_reclamation) |
|
76 |
\newcommand{\vkreklamation}{VK-Reklamation} |
|
77 |
\newcommand{\vkreklamationsformel} {hiermit bestätigen wir Ihnen den Eingang einer Ihrer Reklamation mit folgenden Positionen:} |
|
78 |
|
|
79 |
% einkaufs-reklamationen (purchase_reclamation) |
|
80 |
\newcommand{\ekreklamation}{EK-Reklamation} |
|
81 |
\newcommand{\ekreklamationsformel} {folgende Positionen werden reklamiert:} |
|
82 |
|
|
83 |
\newcommand{\grund}{Grund} |
|
84 |
|
|
75 | 85 |
% rechnung (invoice) |
76 | 86 |
\newcommand{\rechnung} {Rechnung} |
77 | 87 |
\newcommand{\rechnungskopie} {Rechnungskopie} |
templates/print/marei/english.tex | ||
---|---|---|
71 | 71 |
% lieferschein (sales_delivery_order) |
72 | 72 |
\newcommand{\lieferschein} {Delivery order} |
73 | 73 |
|
74 |
% verkaufsreklamationen (sales_reclamation) |
|
75 |
\newcommand{\vkreklamation}{XXXX} |
|
76 |
\newcommand{\vkreklamationsformel} {XXXX} |
|
77 |
|
|
78 |
% einkaufs-reklamationen (purchase_reclamation) |
|
79 |
\newcommand{\ekreklamation}{XXXX} |
|
80 |
\newcommand{\ekreklamationsformel} {XXXX} |
|
81 |
|
|
82 |
\newcommand{\grund}{XXXX} |
|
83 |
|
|
74 | 84 |
% rechnung (invoice) |
75 | 85 |
\newcommand{\rechnung} {Invoice} |
76 | 86 |
\newcommand{\rechnungskopie} {Invoice copy} |
templates/print/marei/purchase_reclamation.tex | ||
---|---|---|
18 | 18 |
\input{insettings.tex} |
19 | 19 |
|
20 | 20 |
% laufende Kopfzeile: |
21 |
\ourhead{\kundennummer}{$( KiviLatex.filter(reclamation.customervendor.number) )$}{\auftragsbestaetigung}{$( KiviLatex.filter(reclamation.record_number) )$}{$( reclamation.transdate_as_date )$}
|
|
21 |
\ourhead{\kundennummer}{$( KiviLatex.filter(reclamation.customervendor.number) )$}{\ekreklamation}{$( KiviLatex.filter(reclamation.record_number) )$}{$( reclamation.transdate_as_date )$}
|
|
22 | 22 |
|
23 | 23 |
\setkomavar*{date}{\datum} |
24 | 24 |
\setkomavar{date}{$( reclamation.transdate_as_date )$} |
... | ... | |
27 | 27 |
%\setkomavar{fromphone}{$( KiviLatex.filter(reclamation.employee.deleted_tel) )$} |
28 | 28 |
%\setkomavar{fromemail}{$( KiviLatex.filter(reclamation.employee.deleted_email) )$} |
29 | 29 |
\setkomavar{title}{ |
30 |
\auftragsbestaetigung~
|
|
30 |
\ekreklamation~
|
|
31 | 31 |
\nr~$( KiviLatex.filter(reclamation.record_number) )$% |
32 | 32 |
} |
33 | 33 |
|
... | ... | |
64 | 64 |
|
65 | 65 |
\begin{letter}{ |
66 | 66 |
%TODO(Tamino): what name, street, ... ? |
67 |
$( name )$\strut\\ |
|
68 |
$( IF (department_1) )$$( department_1 )$\\$( END )$%
|
|
69 |
$( IF (department_2) )$$( department_2 )$\\$( END )$%
|
|
67 |
$( reclamation.customer.name )$\strut\\
|
|
68 |
$( IF (reclamation.customer.department_1) )$$( reclamation.customer.department_1 )$\\$( END )$%
|
|
69 |
$( IF (reclamation.customer.department_2) )$$( reclamation.customer.department_2 )$\\$( END )$%
|
|
70 | 70 |
$( reclamation.contact.cp_givenname )$ $( reclamation.contact.cp_name )$\strut\\ |
71 |
$( street )$\strut\\ |
|
72 |
$( zipcode )$ $( city )$\strut\\ |
|
73 |
$( country )$ \strut |
|
71 |
$( reclamation.customer.street )$\strut\\
|
|
72 |
$( reclamation.customer.zipcode )$ $( city )$\strut\\
|
|
73 |
$( reclamation.customer.country )$ \strut
|
|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
... | ... | |
91 | 91 |
} |
92 | 92 |
\thispagestyle{kivitendo.letter.first} |
93 | 93 |
|
94 |
\auftragsformel
|
|
94 |
\ekreklamationsformel
|
|
95 | 95 |
|
96 | 96 |
\begin{PricingTabular*} |
97 | 97 |
% eigentliche Tabelle |
... | ... | |
104 | 104 |
$( IF (item.reqdate) )$\ExtraDescription{\lieferdatum: $( item.reqdate_as_date )$}$( END )$% |
105 | 105 |
$( IF (item.serialnumber) )$\ExtraDescription{\seriennummer: $( KiviLatex.filter(item.serialnumber) )$}$( END )$% |
106 | 106 |
$( IF (item.projectnumber) )$\ExtraDescription{\projektnummer: $( KiviLatex.filter(item.projectnumber) )$}$( END )$% |
107 |
$( IF (item.reason.description) )$\ExtraDescription{\grund: $( KiviLatex.filter(item.reason.description) )$}$( END )$% |
|
108 |
$( IF (item.reason_description_ext) )$\ExtraDescription{$( KiviLatex.filter(item.reason_description_ext) )$}$( END )$% |
|
107 | 109 |
&% |
108 | 110 |
$( item.qty_as_number )$ $( item.unit )$ &% |
109 | 111 |
$( item.sellprice_as_number )$&% |
110 | 112 |
% TODO(Tamino): discount in '%' |
111 |
\Ifstr{$( p_discount )$}{0}{}{\sffamily\scriptsize{(-$( p_discount )$\,\%)}}%
|
|
113 |
\Ifstr{$( item.discount_as_number )$}{0}{}{\sffamily\scriptsize{(-$( item.discount_as_percent )$\%)}}%
|
|
112 | 114 |
% TODO(Tamino): linetotal |
115 |
\normalsize |
|
113 | 116 |
$( LxERP.format_amount(item.linetotal, 2, 0) )$\tabularnewline |
114 | 117 |
$( END )$% |
115 | 118 |
}% |
... | ... | |
136 | 139 |
\lieferungErfolgtAm ~$( reclamation.reqdate_as_date )$. |
137 | 140 |
$( END )$% |
138 | 141 |
|
139 |
\textit{\auftragpruefen} |
|
140 | 142 |
|
141 | 143 |
%\closing{\gruesse} |
142 | 144 |
|
templates/print/marei/sales_reclamation.tex | ||
---|---|---|
6 | 6 |
|
7 | 7 |
\documentclass[paper=a4,fontsize=10pt]{scrartcl} |
8 | 8 |
\usepackage{kiviletter} |
9 |
|
|
9 |
$( KiviLatex.required_packages_for_html )$ |
|
10 | 10 |
|
11 | 11 |
% Variablen, die in settings verwendet werden |
12 | 12 |
\newcommand{\lxlangcode} {$( template_meta.language.template_code )$} |
... | ... | |
18 | 18 |
\input{insettings.tex} |
19 | 19 |
|
20 | 20 |
% laufende Kopfzeile: |
21 |
\ourhead{\kundennummer}{$( KiviLatex.filter(reclamation.customervendor.number) )$}{\auftragsbestaetigung}{$( KiviLatex.filter(reclamation.record_number) )$}{$( reclamation.transdate_as_date )$}
|
|
21 |
\ourhead{\kundennummer}{$( KiviLatex.filter(reclamation.customervendor.number) )$}{\vkreklamation}{$( KiviLatex.filter(reclamation.record_number) )$}{$( reclamation.transdate_as_date )$}
|
|
22 | 22 |
|
23 | 23 |
\setkomavar*{date}{\datum} |
24 | 24 |
\setkomavar{date}{$( reclamation.transdate_as_date )$} |
... | ... | |
27 | 27 |
%\setkomavar{fromphone}{$( KiviLatex.filter(reclamation.employee.deleted_tel) )$} |
28 | 28 |
%\setkomavar{fromemail}{$( KiviLatex.filter(reclamation.employee.deleted_email) )$} |
29 | 29 |
\setkomavar{title}{ |
30 |
\auftragsbestaetigung~
|
|
30 |
\vkreklamation~
|
|
31 | 31 |
\nr~$( KiviLatex.filter(reclamation.record_number) )$% |
32 | 32 |
} |
33 | 33 |
|
... | ... | |
64 | 64 |
|
65 | 65 |
\begin{letter}{ |
66 | 66 |
%TODO(Tamino): what name, street, ... ? |
67 |
$( name )$\strut\\ |
|
68 |
$( IF (department_1) )$$( department_1 )$\\$( END )$%
|
|
69 |
$( IF (department_2) )$$( department_2 )$\\$( END )$%
|
|
67 |
$( reclamation.customer.name )$\strut\\
|
|
68 |
$( IF (reclamation.customer.department_1) )$$( reclamation.customer.department_1 )$\\$( END )$%
|
|
69 |
$( IF (reclamation.customer.department_2) )$$( reclamation.customer.department_2 )$\\$( END )$%
|
|
70 | 70 |
$( reclamation.contact.cp_givenname )$ $( reclamation.contact.cp_name )$\strut\\ |
71 |
$( street )$\strut\\ |
|
72 |
$( zipcode )$ $( city )$\strut\\ |
|
73 |
$( country )$ \strut |
|
71 |
$( reclamation.customer.street )$\strut\\
|
|
72 |
$( reclamation.customer.zipcode )$ $( city )$\strut\\
|
|
73 |
$( reclamation.customer.country )$ \strut
|
|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
... | ... | |
91 | 91 |
} |
92 | 92 |
\thispagestyle{kivitendo.letter.first} |
93 | 93 |
|
94 |
\auftragsformel
|
|
94 |
\vkreklamationsformel
|
|
95 | 95 |
|
96 | 96 |
\begin{PricingTabular*} |
97 | 97 |
% eigentliche Tabelle |
... | ... | |
100 | 100 |
$( item.position )$ &% |
101 | 101 |
$( item.part.partnumber )$ &% |
102 | 102 |
\textbf{ $( KiviLatex.filter(item.description) )$ }% |
103 |
$( IF (item.longdescription) )$\ExtraDescription{$( KiviLatex.filter(item.longdescription) )$}$( END )$% |
|
103 |
$( IF (item.longdescription) )$\ExtraDescription{$( KiviLatex.filter_html(item.longdescription) )$}$( END )$%
|
|
104 | 104 |
$( IF (item.reqdate) )$\ExtraDescription{\lieferdatum: $( item.reqdate_as_date )$}$( END )$% |
105 | 105 |
$( IF (item.serialnumber) )$\ExtraDescription{\seriennummer: $( KiviLatex.filter(item.serialnumber) )$}$( END )$% |
106 | 106 |
$( IF (item.projectnumber) )$\ExtraDescription{\projektnummer: $( KiviLatex.filter(item.projectnumber) )$}$( END )$% |
107 |
$( IF (item.reason.description) )$\ExtraDescription{\grund: $( KiviLatex.filter(item.reason.description) )$}$( END )$% |
|
108 |
$( IF (item.reason_description_ext) )$\ExtraDescription{$( KiviLatex.filter(item.reason_description_ext) )$}$( END )$% |
|
107 | 109 |
&% |
108 | 110 |
$( item.qty_as_number )$ $( item.unit )$ &% |
109 | 111 |
$( item.sellprice_as_number )$&% |
110 | 112 |
% TODO(Tamino): discount in '%' |
111 |
\Ifstr{$( p_discount )$}{0}{}{\sffamily\scriptsize{(-$( p_discount )$\,\%)}}%
|
|
113 |
\Ifstr{$( item.discount_as_number )$}{0}{}{\sffamily\scriptsize{(-$( item.discount_as_percent )$\%)}}%
|
|
112 | 114 |
% TODO(Tamino): linetotal |
115 |
\normalsize |
|
113 | 116 |
$( LxERP.format_amount(item.linetotal, 2, 0) )$\tabularnewline |
114 | 117 |
$( END )$% |
115 | 118 |
}% |
... | ... | |
136 | 139 |
\lieferungErfolgtAm ~$( reclamation.reqdate_as_date )$. |
137 | 140 |
$( END )$% |
138 | 141 |
|
139 |
\textit{\auftragpruefen} |
|
140 | 142 |
|
141 | 143 |
%\closing{\gruesse} |
142 | 144 |
|
Auch abrufbar als: Unified diff
Druckvorlagen Anpassungen