Neuer Footer
Bernd Wurst

Bernd Wurst commited on 2008-04-15 14:43:16
Zeige 1 geänderte Dateien mit 17 Einfügungen und 8 Löschungen.

... ...
@@ -137,13 +137,22 @@ def InvoiceToPDF(iv):
137 137
       height += 3*cm
138 138
     return height
139 139
 
140
-  def _Footer():
140
+  def _Footer(canvas):
141 141
     canvas.line(leftcontent, bottomcontent, rightcontent, bottomcontent)
142
-    canvas.setFont(font, 8)
143
-    canvas.drawCentredString(leftcontent+((rightcontent-leftcontent)/2), bottomcontent-10, 'schokokeks.org GbR · Bernd Wurst / Johannes Böck · http://www.schokokeks.org/')
144
-    canvas.drawCentredString(leftcontent+((rightcontent-leftcontent)/2), bottomcontent-20, 'Steuernummer: 51072/01109 (FA Backnang) · USt-ID: DE255720588')
145
-    canvas.drawCentredString(leftcontent+((rightcontent-leftcontent)/2), bottomcontent-30, 'Bankverbindung: Volksbank Backnang, BLZ 602 911 20, Konto Nr. 671279 017')
146
-    canvas.drawCentredString(leftcontent+((rightcontent-leftcontent)/2), bottomcontent-40, 'IBAN: DE78602911200671279017, BIC: GENODES1VBK')
142
+    canvas.setFont(font, 7)
143
+    canvas.drawString(leftcontent, bottomcontent-10, 'schokokeks.org GbR')
144
+    canvas.drawString(leftcontent, bottomcontent-20, 'Bernd Wurst / Johannes Böck')
145
+    canvas.drawString(leftcontent, bottomcontent-30, 'http://www.schokokeks.org')
146
+    canvas.drawString(leftcontent, bottomcontent-40, 'root@schokokeks.org')
147
+    
148
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-10, 'Steuernummer 51072/01109')
149
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-20, 'Finanzamt Backnang')
150
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-30, 'USt-ID: DE255720588')
151
+
152
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-10, 'Volksbank Backnang (BLZ: 602 911 20)')
153
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-20, 'Konto: 671279 017')
154
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-30, 'IBAN: DE78602911200671279017')
155
+    canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-40, 'BIC: GENODES1VBK')
147 156
 
148 157
   
149 158
   addy_width = 8.5*cm
... ...
@@ -248,7 +257,7 @@ def InvoiceToPDF(iv):
248 257
       y = bottomcontent + (0.5*cm)
249 258
       canvas.setFont(font, default_font_size-2)
250 259
       canvas.drawRightString(rightcontent, bottomcontent + line_padding, 'Fortsetzung auf Seite %i' % num_pages)
251
-      _Footer()
260
+      _Footer(canvas)
252 261
       _PageWrap(canvas)
253 262
       y = topcontent - font_size
254 263
       canvas.setFillColor((0,0,0))
... ...
@@ -420,7 +429,7 @@ def InvoiceToPDF(iv):
420 429
       raise NotImplementedError("Cannot handle part of type %s" % type(part))
421 430
     y -= (0.5*cm)
422 431
     
423
-  _Footer()
432
+  _Footer(canvas)
424 433
   
425 434
   canvas.showPage()
426 435
   canvas.save()
427 436