Fix: En-Dash in PDF durch Bindestrich ersetzen + _s() Sanitizer für alle Texteingaben (SW by-v982)
This commit is contained in:
parent
1a8716b0b2
commit
68fd9c0e38
7 changed files with 28 additions and 16 deletions
|
|
@ -226,7 +226,7 @@ async def _create_renewal_invoice_draft(user: dict, expires: date, tier_label: s
|
|||
# Verlängerungszeitraum: Folgetag nach Ablauf bis +1 Jahr
|
||||
start = expires + timedelta(days=1)
|
||||
end = start.replace(year=start.year + 1) - timedelta(days=1)
|
||||
period = f"{start.strftime('%d.%m.%Y')} – {end.strftime('%d.%m.%Y')}"
|
||||
period = f"{start.strftime('%d.%m.%Y')} - {end.strftime('%d.%m.%Y')}"
|
||||
|
||||
with db() as conn:
|
||||
# Nur anlegen wenn noch kein Entwurf/offener Eintrag für diesen User + Zeitraum
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue