Telefon/Mail unter Logo jeweils eigene Zeile
This commit is contained in:
10
app.py
10
app.py
@@ -316,14 +316,12 @@ def invoice_pdf():
|
|||||||
if firmen_adresse:
|
if firmen_adresse:
|
||||||
pdf.set_x(right_x)
|
pdf.set_x(right_x)
|
||||||
pdf.cell(col_w, 3.5, firmen_adresse, ln=True, align='R')
|
pdf.cell(col_w, 3.5, firmen_adresse, ln=True, align='R')
|
||||||
contact_parts = []
|
|
||||||
if telefon:
|
if telefon:
|
||||||
contact_parts.append(f"Tel: {telefon}")
|
|
||||||
if email:
|
|
||||||
contact_parts.append(f"Mail: {email}")
|
|
||||||
if contact_parts:
|
|
||||||
pdf.set_x(right_x)
|
pdf.set_x(right_x)
|
||||||
pdf.cell(col_w, 3.5, " | ".join(contact_parts), ln=True, align='R')
|
pdf.cell(col_w, 3.5, f"Tel: {telefon}", ln=True, align='R')
|
||||||
|
if email:
|
||||||
|
pdf.set_x(right_x)
|
||||||
|
pdf.cell(col_w, 3.5, email, ln=True, align='R')
|
||||||
right_bottom = pdf.get_y()
|
right_bottom = pdf.get_y()
|
||||||
|
|
||||||
# --- Rechnungsdaten & Empfaenger (links, unterhalb der rechten Spalte) ---
|
# --- Rechnungsdaten & Empfaenger (links, unterhalb der rechten Spalte) ---
|
||||||
|
|||||||
Reference in New Issue
Block a user