Ticket Plausibilitätsprüfung

This commit is contained in:
Carl Mahnke
2024-03-18 11:45:05 +01:00
parent df8fa9cce1
commit cc5032e0e1
13 changed files with 323 additions and 109 deletions

View File

@@ -1,7 +1,8 @@
import { GebaeudeAufnahmeClient } from "#components/Ausweis/types";
import { AuditType, hidden } from "./hidden";
export function auditLeerStand(gebaeude: GebaeudeAufnahmeClient ): boolean {
if (gebaeude.leerstand ) {
export function auditLeerStand(gebaeude: GebaeudeAufnahmeClient): boolean {
if (gebaeude.leerstand && !hidden.has(AuditType.LEER_STAND)) {
return (
(gebaeude.leerstand > 30)
);