32416ff37d053b7cc0527c4f8ba9d0b9ab96400a
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

1) # -* coding: utf8 *-
Bernd Wurst Python-3-Migration

Bernd Wurst authored 5 years ago

2) from __future__ import division
Bernd Wurst Mache die Invoice-Library f...

Bernd Wurst authored 7 years ago

3) from .metrics import *
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

4) 
Bernd Wurst Break long address-lines

Bernd Wurst authored 15 years ago

5) 
Bernd Wurst Änderung der Adresse und al...

Bernd Wurst authored 7 years ago

6) address_header = 'schokokeks.org · Köchersberg 32 · 71540 Murrhardt'
Bernd Wurst Break long address-lines

Bernd Wurst authored 15 years ago

7) 
8) 
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

9) def FoldingMarkers(canvas):
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

10)     """Setzt Falzmarken"""
11)     from reportlab.lib.units import cm
12)     canvas.setStrokeColorRGB(0, 0, 0)
13)     canvas.setLineWidth(0.01 * cm)
14)     canvas.lines(
15)         [(0.3 * cm, page_height - 10.5 * cm, 0.65 * cm, page_height - 10.5 * cm),
16)          (0.3 * cm, page_height - 21.0 * cm, 0.65 * cm, page_height - 21.0 * cm),
17)             (0.3 * cm, page_height - 14.85 * cm, 0.7 * cm, page_height - 14.85 * cm)])
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

18) 
19) 
20) def Footer(canvas):
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

21)     canvas.line(leftcontent, bottomcontent, rightcontent, bottomcontent)
22)     canvas.setFont(font, 7)
23)     canvas.drawString(leftcontent, bottomcontent - 10, 'schokokeks.org GbR')
24)     canvas.drawString(leftcontent, bottomcontent - 20, 'Bernd Wurst / Johannes Böck')
25)     canvas.drawString(leftcontent, bottomcontent - 30, 'www.schokokeks.org')
26)     canvas.drawString(leftcontent, bottomcontent - 40, 'root@schokokeks.org')
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

27) 
Bernd Wurst Python-3-Migration

Bernd Wurst authored 5 years ago

28)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 10, 'Steuernummer 51072/01109')
29)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 20, 'Finanzamt Backnang')
30)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 30, 'USt-ID: DE255720588')
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

31) 
32)     canvas.setFont(font, 7)
Bernd Wurst Python-3-Migration

Bernd Wurst authored 5 years ago

33)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 10, 'Volksbank Backnang')
34)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 20, 'IBAN: DE91 6029 1120 0041 5120 06')
35)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 30, 'BIC: GENODES1VBK')
36)     canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 40, '(Kto: 41512 006 / BLZ: 602 911 20)')
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

37) 
38) 
39) def basicPage(canvas):
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

40)     FoldingMarkers(canvas)
41)     Footer(canvas)
42)     return topcontent
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

43) 
44) 
45) def firstPage(canvas):
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

46)     basicPage(canvas)
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

47) 
Bernd Wurst automatische code-style-fixes

Bernd Wurst authored 5 years ago

48)     font_size = default_font_size
49)     y = topcontent
50)     canvas.drawInlineImage("logo.png", rightcolumn, topcontent - (3 * cm), width=4.08 * cm, height=3 * cm)
51)     y -= (3.5 * cm)
52)     canvas.setFont(font + "-Bold", font_size)
53)     # canvas.drawString(rightcolumn, y, "schokokeks.org Webhosting")
54)     # y -= (font_size + 5 + 0.2*cm)
55)     canvas.drawString(rightcolumn, y, "schokokeks.org GbR")
56)     y -= (font_size + 5)
57)     canvas.setFont(font, font_size)
58)     canvas.drawString(rightcolumn, y, "Bernd Wurst / Johannes Böck")
59)     y -= (font_size + 5)
60)     canvas.drawString(rightcolumn, y, "Köchersberg 32")
61)     y -= (font_size + 5)
62)     canvas.drawString(rightcolumn, y, "71540 Murrhardt")
63)     y -= (font_size + 10)
64)     canvas.drawString(rightcolumn, y, "Tel: 07192-936432")
65)     y -= (font_size + 5)
66)     canvas.drawString(rightcolumn, y, "Fax: 07192-936431")
67)     y -= (font_size + 5)
68)     canvas.drawString(rightcolumn, y, "E-Mail: root@schokokeks.org")
69)     y -= (font_size + 10)
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

70)