From 04d8ed153bf013e77d6be38da890e99fe0647b1b Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 15 May 2026 13:56:13 +0200 Subject: [PATCH] =?UTF-8?q?UX:=20Neue=20Rechnung=20=E2=80=94=20Hinweis=20'?= =?UTF-8?q?nicht=20f=C3=BCr=20Abos',=20neutraler=20Placeholder,=20passende?= =?UTF-8?q?r=20Notiz-Default=20(SW=20by-v979)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 12 ++++++++++-- backend/static/sw.js | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/backend/main.py b/backend/main.py index 419babe..d1430df 100644 --- a/backend/main.py +++ b/backend/main.py @@ -408,7 +408,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "978" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "979" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/js/app.js b/backend/static/js/app.js index cb220e1..91f4a6d 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '978'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '979'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index 2d71fb6..a3b2b91 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -3884,6 +3884,14 @@ window.Page_admin = (() => { body: `
+ ${!isEdit && !p.recipient_name ? ` +
+ Diese Rechnung ist für sonstige Leistungen (Beratung, Einmalleistung etc.).
+ Für Abo-Verlängerungen bitte den Button „Rechnung erstellen" in der Upgrades-Liste verwenden. +
` : ''} +
@@ -3912,7 +3920,7 @@ window.Page_admin = (() => {
@@ -3948,7 +3956,7 @@ window.Page_admin = (() => { + placeholder="Interne Notiz / Zahlungshinweis">${_esc(p.notes || (!isEdit && !p.recipient_name ? 'Zahlbar innerhalb von 14 Tagen ab Rechnungsdatum.' : ''))}
diff --git a/backend/static/sw.js b/backend/static/sw.js index fa39e6d..da47cbd 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v978'; +const CACHE_VERSION = 'by-v979'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache