Buchungskalender: Preis-Editor prüft Grenzen wie der Server

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-10-07 14:14:38 +00:00
1 parent 37cd312549
commit 8c8fa05591
5 files changed
+116 -12

No files matched your search

+5 -1
View File
@@ -81,7 +81,7 @@ export async function render(panel, ctx) {
if (st.lauf !== lauf || !ctx.aktuell()) return
st.bereiche = Array.isArray(daten?.bereiche) ? daten.bereiche : []
} catch (err) {
if (st.lauf === lauf && ctx.aktuell()) { st.bereiche = []; hinweis.textContent = err.message }
if (st.lauf === lauf && ctx.aktuell()) { st.bereiche = []; zeichne(); hinweis.textContent = err.message }
return
}
zeichne()
@@ -115,6 +115,10 @@ export async function render(panel, ctx) {
return
}
if (ctx.nurLesen) return
if (tag < heuteBerlin()) {
hinweis.textContent = 'Vergangene Tage kannst du nicht sperren.'
return
}
if (!st.start) {
st.start = tag
zeichne()