Fehler gefixt

This commit is contained in:
Moritz Utcke
2025-03-16 17:59:15 -03:00
parent d47651b5a1
commit cd7fce3b1b
3 changed files with 7 additions and 4 deletions

View File

@@ -523,7 +523,9 @@ export async function pdfVerbrauchsausweisGewerbe(ausweis: VerbrauchsausweisGewe
moment(ausweis.startdatum).format("MM.YYYY"), moment(ausweis.startdatum).format("MM.YYYY"),
moment(ausweis.startdatum).add(3, "years").format("MM.YYYY"), moment(ausweis.startdatum).add(3, "years").format("MM.YYYY"),
"Kühlungszuschlag", "Kühlungszuschlag",
berechnungen?.primaerfaktorww.toString(), "",
// TODO
// berechnungen?.primaerfaktorww.toString(),
Math.round(berechnungen?.kuehlungsZuschlag_1 || 0).toString(), Math.round(berechnungen?.kuehlungsZuschlag_1 || 0).toString(),
"0", "0",
0, 0,

View File

@@ -57,9 +57,10 @@
export let aufnahme: AufnahmeClient export let aufnahme: AufnahmeClient
export let user: BenutzerClient; export let user: BenutzerClient;
export let bilder: UploadedGebaeudeBild[]; export let bilder: UploadedGebaeudeBild[];
export let ausweistyp: Enums.AusweisTyp; export let ausweistyp: Enums.AusweisTyp;
export let uid: string | null;
if (!ausweis.updated_at || moment(localStorage.getItem("verbrauchsausweis-wohnen.updated_at") || new Date()).isAfter(ausweis.updated_at)) { if (!uid && (!ausweis.updated_at || moment(localStorage.getItem("verbrauchsausweis-wohnen.updated_at") || new Date()).isAfter(ausweis.updated_at))) {
const localStorageAusweis = localStorage.getItem("verbrauchsausweis-wohnen.ausweis"); const localStorageAusweis = localStorage.getItem("verbrauchsausweis-wohnen.ausweis");
if (localStorageAusweis) { if (localStorageAusweis) {
ausweis = JSON.parse(localStorageAusweis) ausweis = JSON.parse(localStorageAusweis)

View File

@@ -107,5 +107,5 @@ if (uid) {
--- ---
<AusweisLayout title="Verbrauchsausweis erstellen"> <AusweisLayout title="Verbrauchsausweis erstellen">
<VerbrauchsausweisWohnenModule client:only {ausweis} {objekt} {aufnahme} {bilder} {ausweistyp} /> <VerbrauchsausweisWohnenModule client:only {ausweis} {objekt} {aufnahme} {bilder} {uid} {ausweistyp} />
</AusweisLayout> </AusweisLayout>