This commit is contained in:
Moritz Utcke
2025-08-05 11:48:19 -04:00
parent 2cc44d2c09
commit 208ade8219
3 changed files with 4 additions and 6 deletions

View File

@@ -18,8 +18,8 @@ let enddatum = end.isValid() ? end.toDate() : moment().endOf("month").toDate();
// Wir dürfen die Abrechnung erst ab Juni starten lassen.
if (startdatum < moment().set("year", 2025).set("month", 5).set("date", 1).toDate()) {
startdatum = moment().set("year", 2025).set("month", 5).set("date", 1).toDate();
enddatum = moment().set("year", 2025).set("month", 5).set("date", 1).endOf("month").toDate();
startdatum = moment().set("year", 2025).set("month", 5).set("date", 1).set("hour", 0).set("minute", 0).set("second", 0).toDate();
enddatum = moment().set("year", 2025).set("month", 5).set("date", 1).set("hour", 0).set("minute", 0).set("second", 0).endOf("month").toDate();
}
const benutzer = await getCurrentUser(Astro);

View File

@@ -9,7 +9,7 @@ import { extrahiereAusweisAusFeldMitMehrerenAusweisen } from "#lib/server/auswei
import { getProvision } from "#lib/provision";
moment.locale("de");
moment.tz.setDefault("Europe/Berlin");
const datum = moment(Astro.url.searchParams.get("d")).set("date", 1);
const datum = moment(Astro.url.searchParams.get("d")).set("date", 1).set("hour", 0).set("minute", 0).set("second", 0);
const benutzer = await getCurrentUser(Astro);

View File

@@ -75,13 +75,11 @@
</table>
</div>
</article>
{{#if @last}}
<span class="fixed bottom-24 right-16 font-semibold">Gesamt {{ @root.gesamt }} €</span>
{{/if}}
<footer class="px-16 py-6 flex flex-row justify-between items-center fixed bottom-0 left-0 w-full" style="border-top: 12px #f37e3c solid;">
<p class="font-semibold">Copyright © 2018 · IB Cornelsen</p>
<p class="font-semibold">info@online-energieausweis.org</p>
</footer>
{{/each}}
<span class="fixed bottom-24 right-16 font-semibold">Gesamt {{ gesamt }} €</span>
</body>
</html>