Telefon/Mail unter Logo jeweils eigene Zeile

This commit is contained in:
Erik Thiele
2026-07-02 15:35:05 +02:00
parent cae45174ea
commit 27e291b566

10
app.py
View File

@@ -316,14 +316,12 @@ def invoice_pdf():
if firmen_adresse:
pdf.set_x(right_x)
pdf.cell(col_w, 3.5, firmen_adresse, ln=True, align='R')
contact_parts = []
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.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()
# --- Rechnungsdaten & Empfaenger (links, unterhalb der rechten Spalte) ---