Update VerbrauchsausweisContent

This commit is contained in:
Moritz Utcke
2023-05-18 14:59:42 +04:00
parent c9c105627f
commit f0999f3a97
2 changed files with 7 additions and 5 deletions

View File

@@ -5,4 +5,6 @@ const app = express();
app.use(express.static('dist/client/'))
app.use(ssrHandler);
app.listen(80);
app.listen(80);
console.log("Server listening on port 80");

View File

@@ -6,12 +6,12 @@ export function auditBedarfsausweisBenoetigt(gebaeude: Gebaeude): boolean {
return false;
}
return ((gebaeude.baujahr < 1978 &&
return ((gebaeude.baujahr[0] < 1978 &&
gebaeude.einheiten <= 4 &&
gebaeude.saniert == false &&
(ausweis.ausstellgrund == "Vermietung" ||
ausweis.ausstellgrund == "Sonstiges")) ||
ausweis.ausstellgrund == "Sonstiges" ||
ausweis.ausstellgrund == "Verkauf")) ||
ausweis.ausstellgrund == "Neubau" ||
ausweis.ausstellgrund == "Modernisierung" ||
ausweis.ausstellgrund == "Verkauf");
ausweis.ausstellgrund == "Modernisierung");
}