fixed import bugs and filter

This commit is contained in:
Luca Haid
2025-07-17 13:48:55 +02:00
parent f19dee5337
commit fc422eb7ae

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