Revision 3d229eb9
Von Marei Peischl vor mehr als 3 Jahren hinzugefügt
templates/print/marei/invoice.tex | ||
---|---|---|
65 | 65 |
\begin{document} |
66 | 66 |
|
67 | 67 |
\begin{letter}{ |
68 |
<%name%>\strut\\
|
|
69 |
<%if department_1%><%department_1%>\\<%end if%>%
|
|
70 |
<%if department_2%><%department_2%>\\<%end if%>%
|
|
71 |
<%cp_givenname%> <%cp_name%>\strut\\
|
|
72 |
<%street%>\strut\\
|
|
73 |
<%zipcode%> <%city%>\strut\\
|
|
74 |
<%country%> \strut
|
|
75 |
}
|
|
68 |
<%name%>\strut\\ |
|
69 |
<%if department_1%><%department_1%>\\<%end if%>% |
|
70 |
<%if department_2%><%department_2%>\\<%end if%>% |
|
71 |
<%cp_givenname%> <%cp_name%>\strut\\ |
|
72 |
<%street%>\strut\\ |
|
73 |
<%zipcode%> <%city%>\strut\\ |
|
74 |
<%country%> \strut |
|
75 |
} |
|
76 | 76 |
|
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%>}{}
|
|
81 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
|
|
82 |
{
|
|
83 |
\Ifstr{<%cp_gender%>}{f}
|
|
84 |
{\anredefrau}
|
|
85 |
{\anredeherr}
|
|
86 |
<%cp_title%> <%cp_name%>,
|
|
87 |
}
|
|
88 |
}
|
|
80 |
\Ifstr{<%cp_name%>}{} |
|
81 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} |
|
82 |
{
|
|
83 |
\Ifstr{<%cp_gender%>}{f}
|
|
84 |
{\anredefrau}
|
|
85 |
{\anredeherr}
|
|
86 |
<%cp_title%> <%cp_name%>,
|
|
87 |
}
|
|
88 |
}
|
|
89 | 89 |
\thispagestyle{kivitendo.letter.first} |
90 | 90 |
|
91 | 91 |
<%if notes%>% |
92 |
<%notes%>%
|
|
93 |
\vspace{0.5cm}
|
|
92 |
<%notes%>% |
|
93 |
\vspace{0.5cm} |
|
94 | 94 |
<%end if%>% |
95 | 95 |
|
96 | 96 |
|
... | ... | |
108 | 108 |
% amount = 1cm, % Setzt die Breite der Mengenspalte auf 1cm |
109 | 109 |
% desc/header = Artikelbeschreibung, %Ändert die Überschrift der Bezeichnunsspalte in „Artikelbeschreibung” |
110 | 110 |
\begin{PricingTabular*}% |
111 |
% eigentliche Tabelle
|
|
112 |
\FakeTable{%
|
|
113 |
<%foreach number%>%
|
|
114 |
<%runningnumber%> &%
|
|
115 |
<%number%> &%
|
|
116 |
\textbf{<%description%>}%
|
|
117 |
<%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
|
|
118 |
<%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
|
|
119 |
<%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
|
|
120 |
<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
|
|
121 |
&%
|
|
122 |
<%qty%> <%unit%> &%
|
|
123 |
<%sellprice%>&%
|
|
124 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
125 |
<%linetotal%>\tabularnewline%
|
|
126 |
<%end number%>%
|
|
127 |
}%
|
|
128 |
\begin{PricingTotal}%
|
|
129 |
% Tabellenende letzte Seite
|
|
130 |
\nettobetrag & <%subtotal%>\\%
|
|
131 |
<%foreach tax%>%
|
|
132 |
<%taxdescription%> & <%tax%>\\%
|
|
133 |
<%end tax%>%
|
|
134 |
\bfseries\schlussbetrag & \bfseries <%invtotal%>\\%
|
|
135 |
\end{PricingTotal}%
|
|
111 |
% eigentliche Tabelle
|
|
112 |
\FakeTable{%
|
|
113 |
<%foreach number%>%
|
|
114 |
<%runningnumber%> &%
|
|
115 |
<%number%> &%
|
|
116 |
\textbf{<%description%>}%
|
|
117 |
<%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
|
|
118 |
<%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
|
|
119 |
<%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
|
|
120 |
<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
|
|
121 |
&%
|
|
122 |
<%qty%> <%unit%> &%
|
|
123 |
<%sellprice%>&%
|
|
124 |
\Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
|
|
125 |
<%linetotal%>\tabularnewline%
|
|
126 |
<%end number%>%
|
|
127 |
}%
|
|
128 |
\begin{PricingTotal}%
|
|
129 |
% Tabellenende letzte Seite
|
|
130 |
\nettobetrag & <%subtotal%>\\%
|
|
131 |
<%foreach tax%>%
|
|
132 |
<%taxdescription%> & <%tax%>\\%
|
|
133 |
<%end tax%>%
|
|
134 |
\bfseries\schlussbetrag & \bfseries <%invtotal%>\\%
|
|
135 |
\end{PricingTotal}%
|
|
136 | 136 |
\end{PricingTabular*} |
137 | 137 |
|
138 | 138 |
\vspace{0.2cm} |
139 | 139 |
|
140 | 140 |
\Ifstr{<%deliverydate%>}{}{}{% |
141 |
\leistungsdatumGleichRechnungsdatum%
|
|
141 |
\leistungsdatumGleichRechnungsdatum%
|
|
142 | 142 |
}{ |
143 |
\lieferungErfolgtAm ~<%deliverydate%>.
|
|
143 |
\lieferungErfolgtAm ~<%deliverydate%>.
|
|
144 | 144 |
}\\ |
145 | 145 |
|
146 | 146 |
<%if payment_terms%>% |
147 |
\zahlung ~<%payment_terms%>\\
|
|
147 |
\zahlung ~<%payment_terms%>\\ |
|
148 | 148 |
<%end payment_terms%>% |
149 | 149 |
|
150 | 150 |
<%if delivery_term%>% |
151 |
\lieferung ~<%delivery_term.description_long%>\\
|
|
151 |
\lieferung ~<%delivery_term.description_long%>\\ |
|
152 | 152 |
<%end delivery_term%>% |
153 | 153 |
|
154 | 154 |
<%if ustid%>\ihreustid ~<%ustid%>.\\<%end if%>% |
155 | 155 |
|
156 | 156 |
\ifnum<%taxzone_id%>=1 |
157 |
\steuerfreiEU\\ % EU mit USt-ID Nummer
|
|
157 |
\steuerfreiEU\\ % EU mit USt-ID Nummer |
|
158 | 158 |
\else |
159 |
\ifnum<%taxzone_id%>=3
|
|
160 |
\steuerfreiAUS\\ % Außerhalb EU
|
|
161 |
\fi
|
|
159 |
\ifnum<%taxzone_id%>=3 |
|
160 |
\steuerfreiAUS\\ % Außerhalb EU |
|
161 |
\fi |
|
162 | 162 |
\fi |
163 | 163 |
|
164 | 164 |
\closing{\gruesse} |
Auch abrufbar als: Unified diff
marei: adjust indentation using latexindent according to kivitendo regulations 2 spaces instead of 1 tab