Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 1) # -* coding: utf8 *-
|
Python-3-Migration
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 2) from __future__ import division
|
Mache die Invoice-Library f...
Bernd Wurst authored 7 years ago
|
src/rechnung/Invoice/custom_elements.py 3) from .metrics import *
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 4)
|
Break long address-lines
Bernd Wurst authored 15 years ago
|
src/rechnung/Invoice/custom_elements.py 5)
|
Änderung der Adresse und al...
Bernd Wurst authored 7 years ago
|
src/rechnung/Invoice/custom_elements.py 6) address_header = 'schokokeks.org · Köchersberg 32 · 71540 Murrhardt'
|
Break long address-lines
Bernd Wurst authored 15 years ago
|
src/rechnung/Invoice/custom_elements.py 7)
src/rechnung/Invoice/custom_elements.py 8)
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 9) def FoldingMarkers(canvas):
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 10) """Setzt Falzmarken"""
src/rechnung/Invoice/custom_elements.py 11) from reportlab.lib.units import cm
src/rechnung/Invoice/custom_elements.py 12) canvas.setStrokeColorRGB(0, 0, 0)
src/rechnung/Invoice/custom_elements.py 13) canvas.setLineWidth(0.01 * cm)
src/rechnung/Invoice/custom_elements.py 14) canvas.lines(
src/rechnung/Invoice/custom_elements.py 15) [(0.3 * cm, page_height - 10.5 * cm, 0.65 * cm, page_height - 10.5 * cm),
src/rechnung/Invoice/custom_elements.py 16) (0.3 * cm, page_height - 21.0 * cm, 0.65 * cm, page_height - 21.0 * cm),
src/rechnung/Invoice/custom_elements.py 17) (0.3 * cm, page_height - 14.85 * cm, 0.7 * cm, page_height - 14.85 * cm)])
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 18)
src/rechnung/Invoice/custom_elements.py 19)
src/rechnung/Invoice/custom_elements.py 20) def Footer(canvas):
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 21) canvas.line(leftcontent, bottomcontent, rightcontent, bottomcontent)
src/rechnung/Invoice/custom_elements.py 22) canvas.setFont(font, 7)
src/rechnung/Invoice/custom_elements.py 23) canvas.drawString(leftcontent, bottomcontent - 10, 'schokokeks.org GbR')
src/rechnung/Invoice/custom_elements.py 24) canvas.drawString(leftcontent, bottomcontent - 20, 'Bernd Wurst / Johannes Böck')
src/rechnung/Invoice/custom_elements.py 25) canvas.drawString(leftcontent, bottomcontent - 30, 'www.schokokeks.org')
src/rechnung/Invoice/custom_elements.py 26) canvas.drawString(leftcontent, bottomcontent - 40, 'root@schokokeks.org')
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 27)
|
Python-3-Migration
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 28) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 10, 'Steuernummer 51072/01109')
src/rechnung/Invoice/custom_elements.py 29) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 20, 'Finanzamt Backnang')
src/rechnung/Invoice/custom_elements.py 30) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3), bottomcontent - 30, 'USt-ID: DE255720588')
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 31)
src/rechnung/Invoice/custom_elements.py 32) canvas.setFont(font, 7)
|
Python-3-Migration
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 33) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 10, 'Volksbank Backnang')
src/rechnung/Invoice/custom_elements.py 34) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 20, 'IBAN: DE91 6029 1120 0041 5120 06')
src/rechnung/Invoice/custom_elements.py 35) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 30, 'BIC: GENODES1VBK')
src/rechnung/Invoice/custom_elements.py 36) canvas.drawString(leftcontent + ((rightcontent - leftcontent) // 3) * 2, bottomcontent - 40, '(Kto: 41512 006 / BLZ: 602 911 20)')
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 37)
src/rechnung/Invoice/custom_elements.py 38)
src/rechnung/Invoice/custom_elements.py 39) def basicPage(canvas):
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 40) FoldingMarkers(canvas)
src/rechnung/Invoice/custom_elements.py 41) Footer(canvas)
src/rechnung/Invoice/custom_elements.py 42) return topcontent
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 43)
src/rechnung/Invoice/custom_elements.py 44)
src/rechnung/Invoice/custom_elements.py 45) def firstPage(canvas):
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 46) basicPage(canvas)
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 47)
|
automatische code-style-fixes
Bernd Wurst authored 5 years ago
|
src/rechnung/Invoice/custom_elements.py 48) font_size = default_font_size
src/rechnung/Invoice/custom_elements.py 49) y = topcontent
src/rechnung/Invoice/custom_elements.py 50) canvas.drawInlineImage("logo.png", rightcolumn, topcontent - (3 * cm), width=4.08 * cm, height=3 * cm)
src/rechnung/Invoice/custom_elements.py 51) y -= (3.5 * cm)
src/rechnung/Invoice/custom_elements.py 52) canvas.setFont(font + "-Bold", font_size)
src/rechnung/Invoice/custom_elements.py 53) # canvas.drawString(rightcolumn, y, "schokokeks.org Webhosting")
src/rechnung/Invoice/custom_elements.py 54) # y -= (font_size + 5 + 0.2*cm)
src/rechnung/Invoice/custom_elements.py 55) canvas.drawString(rightcolumn, y, "schokokeks.org GbR")
src/rechnung/Invoice/custom_elements.py 56) y -= (font_size + 5)
src/rechnung/Invoice/custom_elements.py 57) canvas.setFont(font, font_size)
src/rechnung/Invoice/custom_elements.py 58) canvas.drawString(rightcolumn, y, "Bernd Wurst / Johannes Böck")
src/rechnung/Invoice/custom_elements.py 59) y -= (font_size + 5)
src/rechnung/Invoice/custom_elements.py 60) canvas.drawString(rightcolumn, y, "Köchersberg 32")
src/rechnung/Invoice/custom_elements.py 61) y -= (font_size + 5)
src/rechnung/Invoice/custom_elements.py 62) canvas.drawString(rightcolumn, y, "71540 Murrhardt")
src/rechnung/Invoice/custom_elements.py 63) y -= (font_size + 10)
src/rechnung/Invoice/custom_elements.py 64) canvas.drawString(rightcolumn, y, "Tel: 07192-936432")
src/rechnung/Invoice/custom_elements.py 65) y -= (font_size + 5)
src/rechnung/Invoice/custom_elements.py 66) canvas.drawString(rightcolumn, y, "Fax: 07192-936431")
src/rechnung/Invoice/custom_elements.py 67) y -= (font_size + 5)
src/rechnung/Invoice/custom_elements.py 68) canvas.drawString(rightcolumn, y, "E-Mail: root@schokokeks.org")
src/rechnung/Invoice/custom_elements.py 69) y -= (font_size + 10)
|
Trennung von Firmen-spezifi...
Bernd Wurst authored 16 years ago
|
src/rechnung/Invoice/custom_elements.py 70)
|