This commit is contained in:
Luca Haid
2025-05-06 11:28:55 +02:00
parent 4c4dc1b00c
commit 265f07ed53
6 changed files with 91 additions and 15 deletions
@@ -422,6 +422,10 @@ class ConstructionConsent extends mfBaseModel {
WHEN approve_override = 1 THEN 0
ELSE (cwo.result = 'unresolvable')
END), 0) > 0
OR COALESCE(SUM(CASE
WHEN approve_override = 1 THEN 0
ELSE (cwo.result = 'open')
END), 0) > 0
OR COALESCE(SUM(CASE
WHEN approve_override = 1 THEN 0
ELSE (cwo.result = 'moved')