Bernd Wurst commited on 2024-02-14 19:19:35
Zeige 1 geänderte Dateien mit 4 Einfügungen und 4 Löschungen.
... | ... |
@@ -289,7 +289,7 @@ class PDF(object): |
289 | 289 |
if self.invoice.seller['email']: |
290 | 290 |
self.canvas.drawString(self.rightcolumn, self.y, f"E-Mail: {self.invoice.seller['email']}") |
291 | 291 |
self.y -= (self.font_size + 10) |
292 |
- self.y = -9.5 * cm |
|
292 |
+ self.y = -8.5 * cm |
|
293 | 293 |
|
294 | 294 |
def title(self, title): |
295 | 295 |
self.canvas.setTitle(title) |
... | ... |
@@ -297,9 +297,6 @@ class PDF(object): |
297 | 297 |
|
298 | 298 |
def renderRechnung(self): |
299 | 299 |
self.firstPage() |
300 |
- self.canvas.setFont(self.font + '-Bold', self.font_size + 3) |
|
301 |
- self.title(self.invoice.title) |
|
302 |
- |
|
303 | 300 |
if self.invoice.tender: |
304 | 301 |
self.canvas.setFont(self.font, self.font_size) |
305 | 302 |
self.canvas.drawString(self.rightcolumn, self.y, "Erstellungsdatum:") |
... | ... |
@@ -341,6 +338,9 @@ class PDF(object): |
341 | 338 |
self.canvas.drawString(self.rightcolumn, self.y, "Ihre Bestellnummer:") |
342 | 339 |
self.canvas.drawRightString(self.rightcontent, self.y, "%s" % self.invoice.order_number) |
343 | 340 |
self.y -= (self.font_size + 0.1 * cm) |
341 |
+ self.canvas.setFont(self.font + '-Bold', self.font_size + 3) |
|
342 |
+ self.title(self.invoice.title) |
|
343 |
+ self.y -= self.font_size + 3 + 0.3 * cm |
|
344 | 344 |
self.canvas.setFont(self.font, self.font_size) |
345 | 345 |
|
346 | 346 |
if self.invoice.salutation: |
347 | 347 |