Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5f07dcc9

Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt

  • ID 5f07dcc9e9f7715f807c0dda4a260f21dfcd76b1
  • Vorgänger 29f7a565

RB-Druckvorlagen: Verkaufsreklamation

Unterschiede anzeigen:

templates/print/RB/deutsch.tex
74 74
% lieferschein (sales_delivery_order)
75 75
\newcommand{\lieferschein} {Lieferschein}
76 76

  
77
% verkaufsreklamationen (sales_reclamation)
78
\newcommand{\vkreklamation}{VK-Reklamation}
79
\newcommand{\vkreklamationsformel} {hiermit bestätigen wir Ihnen den Eingang einer Ihrer Reklamation mit folgenden Positionen:}
80

  
81
% einkaufs-reklamationen (purchase_reclamation)
82
\newcommand{\ekreklamation}{EK-Reklamation}
83
\newcommand{\ekreklamationsformel} {folgende Positionen werden reklamiert:}
84

  
85
\newcommand{\grund}{Grund}
86

  
77 87
% rechnung (invoice)
78 88
\newcommand{\rechnung} {Rechnung}
79 89
\newcommand{\rechnungsdatum} {Rechnungsdatum}
templates/print/RB/english.tex
73 73
% lieferschein (sales_delivery_order)
74 74
\newcommand{\lieferschein} {Delivery order}
75 75

  
76
% verkaufsreklamationen (sales_reclamation)
77
\newcommand{\vkreklamation}{XXXX}
78
\newcommand{\vkreklamationsformel} {XXXX}
79

  
80
% einkaufs-reklamationen (purchase_reclamation)
81
\newcommand{\ekreklamation}{XXXX}
82
\newcommand{\ekreklamationsformel} {XXXX}
83

  
84
\newcommand{\grund}{reason}
85

  
76 86
% rechnung (invoice)
77 87
\newcommand{\rechnung} {Invoice}
78 88
\newcommand{\rechnungsdatum} {Invoice date}
templates/print/RB/sales_reclamation.tex
1
% config: use-template-toolkit=1
2
% config: tag-style=$( )$
3
$( USE KiviLatex )$
4
$( USE L )$
5
$( USE LxERP )$
6

  
7
\input{inheaders.tex}
8

  
9

  
10
% Variablen, die in settings verwendet werden
11
\newcommand{\lxlangcode} {$( template_meta.language.template_code )$}
12
\newcommand{\lxmedia} {$( media )$}
13
\newcommand{\lxcurrency} {$( currency )$}
14
\newcommand{\kivicompany} {$( employee_company )$}
15

  
16
% settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
17
\input{insettings.tex}
18

  
19
% laufende Kopfzeile:
20
\ourhead{\kundennummer}{$( KiviLatex.filter(reclamation.customervendor.number) )$}{\vkreklamation}{$( KiviLatex.filter(reclamation.record_number) )$}{$( reclamation.transdate_as_date )$}
21

  
22
\begin{document}
23

  
24
\ourfont
25
\begin{minipage}[t]{8cm}
26
  \scriptsize
27

  
28
  {\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}}
29
  \normalsize
30

  
31
  \vspace*{0.3cm}
32

  
33
  $( KiviLatex.filter(reclamation.customer.name ) )$
34

  
35
  $( IF (reclamation.customer.department_1) )$$( KiviLatex.filter(reclamation.customer.department_1) )$\\$( END )$%
36

  
37
  $( IF (reclamation.customer.department_2) )$$( KiviLatex.filter(reclamation.customer.department_2) )$\\$( END )$%
38

  
39
  $( KiviLatex.filter(reclamation.contact.cp_givenname) )$ $( KiviLatex.filter(reclamation.contact.cp_name) )$
40

  
41
  $( KiviLatex.filter(reclamation.customer.street) )$
42

  
43
  ~
44
  
45
  $( KiviLatex.filter(reclamation.customer.zipcode) )$ $( KiviLatex.filter(city) )$
46

  
47
  $( KiviLatex.filter(reclamation.customer.country) )$
48
\end{minipage}
49
\hfill
50
\begin{minipage}[t]{6cm}
51
  \hfill{\LARGE\textbf{\vkreklamation}}
52

  
53
  \vspace*{0.2cm}
54

  
55
  \hfill{\large\textbf{\nr ~$( KiviLatex.filter(reclamation.record_number) )$}}
56

  
57
  \vspace*{0.2cm}
58

  
59
  \datum:\hfill $( reclamation.transdate_as_date )$
60

  
61
  \kundennummer:\hfill $( KiviLatex.filter(reclamation.customervendor.number) )$
62

  
63
  \ansprechpartner:\hfill $( employee_name )$
64

  
65
  \textTelefon \hfill $( employee_tel )$
66

  
67
  \textEmail \hfill $( employee_email )$
68
\end{minipage}
69

  
70
$( IF (reclamation.shipto.shiptoname) )$%
71
  \vspace{0.8cm}
72
  \scriptsize \underline{\abweichendeLieferadresse:}\\
73
  \normalsize    $( KiviLatex.filter(reclamation.shipto.shiptoname) )$
74

  
75
                 $( IF reclamation.shipto.shiptocontact )$ $( KiviLatex.filter(reclamation.shipto.shiptocontact) )$$( END )$
76

  
77
                 $( KiviLatex.filter(reclamation.shipto.shiptodepartment_1) )$
78

  
79
                 $( KiviLatex.filter(reclamation.shipto.shiptodepartment_2) )$
80

  
81
                 $( KiviLatex.filter(reclamation.shipto.shiptostreet) )$
82

  
83
                 $( KiviLatex.filter(reclamation.shipto.shiptozipcode) )$ $( KiviLatex.filter(reclamation.shipto.shiptocity) )$
84
$( END )$
85
\vspace*{1.5cm}
86

  
87
\hfill
88

  
89
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
90
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
91
\ifthenelse{\equal{$( reclamation.contact.cp_name )$}{}}{
92
  $( IF reclamation.customervendor.natural_person )$$( KiviLatex.filter(reclamation.customervendor.greeting) )$ $( KiviLatex.filter(reclamation.customervendor.name) )$,$( ELSE )$\anrede$( END )$}{
93
  \ifthenelse{\equal{$( reclamation.contact.cp_gender )$}{f}}
94
    {\anredefrau}{\anredeherr} $( KiviLatex.filter(reclamation.contact.cp_title) )$ $( KiviLatex.filter(reclamation.contact.cp_name) )$,}\\
95

  
96
\vkreklamationsformel\\
97

  
98
\vspace{0.5cm}
99

  
100

  
101
%
102
% - longtable kann innerhalb der Tabelle umbrechen
103
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
104
%   Übertrag machen
105
% - Innerhalb des Langtextes $( longdescription )$ wird nicht umgebrochen.
106
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
107
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
108
%
109
\setlength\LTleft\parindent     % Tabelle beginnt am linken Textrand
110
\setlength\LTright{0pt}         % Tabelle endet am rechten Textrand
111
\begin{longtable}{@{}rrp{7cm}@{\extracolsep{\fill}}rrr@{}}
112
% Tabellenkopf
113
\hline
114
\textbf{\position} & \textbf{\artikelnummer} & \textbf{\bezeichnung} & \textbf{\menge} & \textbf{\einzelpreis} & \textbf{\gesamtpreis} \\
115
\hline\\
116
\endhead
117

  
118
% Tabellenkopf erste Seite
119
\hline
120
\textbf{\position} & \textbf{\artikelnummer} & \textbf{\bezeichnung} & \textbf{\menge} & \textbf{\einzelpreis} & \textbf{\gesamtpreis} \\
121
\hline\\[-0.5em]
122
\endfirsthead
123

  
124
% Tabellenende
125
\\
126
\multicolumn{6}{@{}r@{}}{\weiteraufnaechsterseite}
127
\endfoot
128

  
129
% Tabellenende letzte Seite
130
\hline\\
131
\multicolumn{5}{@{}l}{\nettobetrag} & $( reclamation.netamount_as_number )$ \currency\\
132
$( FOREACH tax = reclamation.taxes )$
133
\multicolumn{5}{@{}l}{$( KiviLatex.filter(tax.tax.taxdescription) )$} & $( LxERP.format_amount(tax.amount) )$ \currency\\
134
$( END )$
135
\multicolumn{5}{@{}l}{\textbf{\schlussbetrag}} &  \textbf{$( reclamation.amount_as_number )$} \currency\\
136
\hline\hline\\
137
\endlastfoot
138

  
139
% eigentliche Tabelle
140
$( FOREACH item = reclamation.items_sorted )$
141
  $( item.position )$ &
142
  $( KiviLatex.filter(item.part.partnumber) )$ &
143
  \textbf{$( KiviLatex.filter(item.description) )$} &
144
  \raggedleft $( item.qty_as_number )$ $( KiviLatex.filter(item.unit) )$ &
145
  $( item.sellprice_as_number )$ \currency &
146
  \ifthenelse{\equal{$( item.discount )$}{0}}{}{\sffamily\scriptsize{(-$( item.discount_as_percent )$ \%)}}
147
  \ourfont{$( LxERP.format_amount(item.linetotal, 2) )$ \currency} \\*  % kein Umbruch nach der ersten Zeile, damit Beschreibung und Langtext nicht getrennt werden
148

  
149
  $( IF item.longdescription )$ && \scriptsize $( KiviLatex.filter_html(item.longdescription) )$\\$( END )$
150
  $( IF item.reqdate )$         && \scriptsize \lieferdatum: $( item.reqdate_as_date )$\\$( END )$
151
  $( IF item.serialnumber )$    && \scriptsize \seriennummer: $( KiviLatex.filter(item.serialnumber) )$\\$( END )$
152
  $( IF item.part.ean )$        && \scriptsize \ean: $( KiviLatex.filter(item.part.ean) )$\\$( END )$
153
  $( IF item.projectnumber )$   && \scriptsize \projektnummer: $( KiviLatex.filter(item.projectnumber) )$\\$( END )$
154
  $( IF item.part.customerprices.size )$
155
    $( FOREACH customerprice = item.part.customerprices )$
156
      $( IF customerprice.customer_id == reclamation.customervendor.id )$
157
        && \kundenartnr: $( KiviLatex.filter(customerprice.customer_partnumber) )$\\
158
      $( END )$
159
    $( END )$
160
  $( END )$
161

  
162
  $( IF (item.reason.description) )$     && \scriptsize \grund: $( KiviLatex.filter(item.reason.description) )$\\$( END )$
163
  $( IF (item.reason_description_ext) )$ && \scriptsize $( KiviLatex.filter(item.reason_description_ext) )$\\$( END )$
164
  \\[-0.8em]
165
$( END )$
166

  
167
\end{longtable}
168

  
169

  
170
\vspace{0.2cm}
171

  
172
$( IF reclamation.notes )$
173
  \vspace{5mm}
174
  $( KiviLatex.filter_html(reclamation.notes) )$
175
\vspace{5mm}
176
$( END )$
177

  
178
$( IF reclamation.delivery_term )$
179
  \lieferung ~$( KiviLatex.filter(reclamation.delivery_term.description_long) )$\\
180
$( END )$
181

  
182
$( IF reclamation.reqdate )$
183
  \lieferungErfolgtAm ~$( reclamation.reqdate_as_date )$. \\
184
$( END )$
185

  
186
\gruesse \\ \\ \\
187
  $( KiviLatex.filter(reclamation.employee.name) )$
188

  
189
\end{document}
190

  

Auch abrufbar als: Unified diff