Merge branch 'ConstructionConsent/fix-bugs2' into 'master'

fixed import bugs and filter

See merge request fronk/thetool!1554
This commit is contained in:
Luca Haid
2025-07-17 11:49:05 +00:00

View File

@@ -435,7 +435,7 @@ class ConstructionConsent extends mfBaseModel {
END), 0) > 0
OR COALESCE(SUM(CASE
WHEN approve_override = 1 THEN 0
ELSE (cwo.result = 'open')
ELSE (cwo.result = 'open' AND cwo.status != 'new')
END), 0) > 0
OR COALESCE(SUM(CASE
WHEN approve_override = 1 THEN 0