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
|
|
@ -1339,7 +1339,7 @@ async def _handle_upgrade_invoices(req: dict, new_tier_label: str):
|
|||
price = {"pro": 29.00, "breeder": 49.00}.get(tier, 29.00)
|
||||
today = datetime.now(_TZ).date()
|
||||
end_date = today.replace(year=today.year + 1) - timedelta(days=1)
|
||||
period = f"{today.strftime('%d.%m.%Y')} – {end_date.strftime('%d.%m.%Y')}"
|
||||
period = f"{today.strftime('%d.%m.%Y')} - {end_date.strftime('%d.%m.%Y')}"
|
||||
description = f"{new_tier_label} Jahresabo"
|
||||
|
||||
billing = conn.execute(
|
||||
|
|
@ -1486,7 +1486,7 @@ async def send_quarterly_report(data: QuarterlyReportBody, user=Depends(require_
|
|||
count_sent = sum(1 for r in rows if r["status"] == "sent")
|
||||
|
||||
subject_stb = (
|
||||
f"Ban Yaro – Rechnungen Q{data.quarter}/{data.year} "
|
||||
f"Ban Yaro - Rechnungen Q{data.quarter}/{data.year} "
|
||||
f"({start} bis {end})"
|
||||
)
|
||||
body_stb = (
|
||||
|
|
@ -1559,7 +1559,7 @@ async def send_quarterly_report(data: QuarterlyReportBody, user=Depends(require_
|
|||
"sent_to": data.email,
|
||||
"year": data.year,
|
||||
"quarter": data.quarter,
|
||||
"period": f"{start} – {end}",
|
||||
"period": f"{start} - {end}",
|
||||
"count": len(rows),
|
||||
"count_paid": count_paid,
|
||||
"count_sent": count_sent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue