Revision ab064135
Von Marei Peischl vor 7 Monaten hinzugefügt
templates/print/marei/sales_reclamation.tex | ||
---|---|---|
63 | 63 |
\begin{document} |
64 | 64 |
|
65 | 65 |
\begin{letter}{ |
66 |
%TODO(Tamino): what name, street, ... ?
|
|
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 |
$( reclamation.contact.cp_givenname )$ $( reclamation.contact.cp_name )$\strut\\
|
|
71 |
$( reclamation.customer.street )$\strut\\
|
|
72 |
$( reclamation.customer.zipcode )$ $( city )$\strut\\
|
|
73 |
$( reclamation.customer.country )$ \strut
|
|
74 |
} |
|
66 |
%TODO(Tamino): what name, street, ... ? |
|
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 |
$( reclamation.contact.cp_givenname )$ $( reclamation.contact.cp_name )$\strut\\ |
|
71 |
$( reclamation.customer.street )$\strut\\ |
|
72 |
$( reclamation.customer.zipcode )$ $( city )$\strut\\ |
|
73 |
$( reclamation.customer.country )$ \strut |
|
74 |
}
|
|
75 | 75 |
|
76 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
|
77 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
|
78 |
\opening{ |
|
79 |
\Ifstr{$( KiviLatex.filter(reclamation.contact.cp_name) )$}{}{ |
|
80 |
$( IF (reclamation.customervendor.natural_person) )$
|
|
81 |
$( KiviLatex.filter(reclamation.customervendor.greeting) )$ $( KiviLatex.filter(reclamation.customervendor.name) )$,
|
|
82 |
$( ELSE )$
|
|
83 |
\anrede
|
|
84 |
$( END )$
|
|
85 |
}{ |
|
76 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
|
|
77 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
|
|
78 |
\opening{
|
|
79 |
\Ifstr{$( KiviLatex.filter(reclamation.contact.cp_name) )$}{}{
|
|
80 |
$( IF (reclamation.customervendor.natural_person) )$ |
|
81 |
$( KiviLatex.filter(reclamation.customervendor.greeting) )$ $( KiviLatex.filter(reclamation.customervendor.name) )$, |
|
82 |
$( ELSE )$ |
|
83 |
\anrede |
|
84 |
$( END )$ |
|
85 |
}{
|
|
86 | 86 |
\Ifstr{$( KiviLatex.filter(reclamation.contact.cp_gender) )$}{f} |
87 |
{\anredefrau}
|
|
88 |
{\anredeherr}
|
|
89 |
$( KiviLatex.filter(reclamation.contact.cp_title) )$ $( KiviLatex.filter(reclamation.contact.cp_name) )$,
|
|
90 |
} |
|
91 |
} |
|
92 |
\thispagestyle{kivitendo.letter.first} |
|
93 |
|
|
94 |
\vkreklamationsformel |
|
95 |
|
|
96 |
\begin{PricingTabular*} |
|
97 |
% eigentliche Tabelle |
|
98 |
\FakeTable{ |
|
99 |
$( FOREACH item = reclamation.items_sorted )$% |
|
100 |
$( item.position )$ &% |
|
101 |
$( item.part.partnumber )$ &% |
|
102 |
\textbf{ $( KiviLatex.filter(item.description) )$ }% |
|
103 |
$( IF (item.longdescription) )$\ExtraDescription{$( KiviLatex.filter_html(item.longdescription) )$}$( END )$% |
|
104 |
$( IF (item.reqdate) )$\ExtraDescription{\lieferdatum: $( item.reqdate_as_date )$}$( END )$% |
|
105 |
$( IF (item.serialnumber) )$\ExtraDescription{\seriennummer: $( KiviLatex.filter(item.serialnumber) )$}$( END )$% |
|
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 )$% |
|
109 |
&% |
|
110 |
$( item.qty_as_number )$ $( item.unit )$ &% |
|
111 |
$( item.sellprice_as_number )$&% |
|
112 |
% TODO(Tamino): discount in '%' |
|
113 |
\Ifstr{$( item.discount_as_number )$}{0}{}{\sffamily\scriptsize{(-$( item.discount_as_percent )$\%)}}% |
|
114 |
% TODO(Tamino): linetotal |
|
115 |
\normalsize |
|
116 |
$( LxERP.format_amount(item.linetotal, 2, 0) )$\tabularnewline |
|
117 |
$( END )$% |
|
118 |
}% |
|
119 |
\begin{PricingTotal}% |
|
120 |
% Tabellenende letzte Seite |
|
121 |
\nettobetrag & $( reclamation.netamount_as_number )$\\% |
|
122 |
$( FOREACH tax = reclamation.taxes )$% |
|
123 |
$( KiviLatex.filter(tax.tax.taxdescription) )$ & $( LxERP.format_amount(tax.amount) )$\\% |
|
124 |
$( END )$% |
|
125 |
\bfseries\schlussbetrag & \bfseries $( reclamation.amount_as_number )$\\% |
|
126 |
\end{PricingTotal} |
|
127 |
\end{PricingTabular*} |
|
128 |
|
|
129 |
$( IF (reclamation.notes) )$% |
|
87 |
{\anredefrau} |
|
88 |
{\anredeherr} |
|
89 |
$( KiviLatex.filter(reclamation.contact.cp_title) )$ $( KiviLatex.filter(reclamation.contact.cp_name) )$, |
|
90 |
}
|
|
91 |
}
|
|
92 |
\thispagestyle{kivitendo.letter.first}
|
|
93 |
|
|
94 |
\vkreklamationsformel
|
|
95 |
|
|
96 |
\begin{PricingTabular*}
|
|
97 |
% eigentliche Tabelle
|
|
98 |
\FakeTable{
|
|
99 |
$( FOREACH item = reclamation.items_sorted )$%
|
|
100 |
$( item.position )$ &%
|
|
101 |
$( item.part.partnumber )$ &%
|
|
102 |
\textbf{ $( KiviLatex.filter(item.description) )$ }%
|
|
103 |
$( IF (item.longdescription) )$\ExtraDescription{$( KiviLatex.filter_html(item.longdescription) )$}$( END )$%
|
|
104 |
$( IF (item.reqdate) )$\ExtraDescription{\lieferdatum: $( item.reqdate_as_date )$}$( END )$%
|
|
105 |
$( IF (item.serialnumber) )$\ExtraDescription{\seriennummer: $( KiviLatex.filter(item.serialnumber) )$}$( END )$%
|
|
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 )$%
|
|
109 |
&%
|
|
110 |
$( item.qty_as_number )$ $( item.unit )$ &%
|
|
111 |
$( item.sellprice_as_number )$&%
|
|
112 |
% TODO(Tamino): discount in '%'
|
|
113 |
\Ifstr{$( item.discount_as_number )$}{0}{}{\sffamily\scriptsize{(-$( item.discount_as_percent )$\%)}}%
|
|
114 |
% TODO(Tamino): linetotal
|
|
115 |
\normalsize
|
|
116 |
$( LxERP.format_amount(item.linetotal, 2, 0) )$\tabularnewline
|
|
117 |
$( END )$%
|
|
118 |
}%
|
|
119 |
\begin{PricingTotal}%
|
|
120 |
% Tabellenende letzte Seite
|
|
121 |
\nettobetrag & $( reclamation.netamount_as_number )$\\%
|
|
122 |
$( FOREACH tax = reclamation.taxes )$%
|
|
123 |
$( KiviLatex.filter(tax.tax.taxdescription) )$ & $( LxERP.format_amount(tax.amount) )$\\%
|
|
124 |
$( END )$%
|
|
125 |
\bfseries\schlussbetrag & \bfseries $( reclamation.amount_as_number )$\\%
|
|
126 |
\end{PricingTotal}
|
|
127 |
\end{PricingTabular*}
|
|
128 |
|
|
129 |
$( IF (reclamation.notes) )$%
|
|
130 | 130 |
$( KiviLatex.filter_html(reclamation.notes) )$% |
131 |
\medskip |
|
132 |
$( END )$% |
|
131 |
\medskip
|
|
132 |
$( END )$%
|
|
133 | 133 |
|
134 |
$( IF (reclamation.delivery_term) )$% |
|
135 |
\lieferung ~$( KiviLatex.filter(reclamation.delivery_term.description_long) )$\\ |
|
136 |
$( END )$% |
|
134 |
$( IF (reclamation.delivery_term) )$%
|
|
135 |
\lieferung ~$( KiviLatex.filter(reclamation.delivery_term.description_long) )$\\
|
|
136 |
$( END )$%
|
|
137 | 137 |
|
138 |
$( IF (reclamation.reqdate) )$% |
|
139 |
\lieferungErfolgtAm ~$( reclamation.reqdate_as_date )$. |
|
140 |
$( END )$% |
|
138 |
$( IF (reclamation.reqdate) )$%
|
|
139 |
\lieferungErfolgtAm ~$( reclamation.reqdate_as_date )$.
|
|
140 |
$( END )$%
|
|
141 | 141 |
|
142 | 142 |
|
143 |
%\closing{\gruesse} |
|
143 |
%\closing{\gruesse}
|
|
144 | 144 |
|
145 | 145 |
\end{letter} |
146 | 146 |
|
Auch abrufbar als: Unified diff
unify identation