fixed import bugs and filter
This commit is contained in:
@@ -428,6 +428,10 @@ class ConstructionConsent extends mfBaseModel {
|
||||
COUNT(cwo.id) AS total_owners,
|
||||
CASE
|
||||
WHEN ConstructionConsent.approve_override = 1 THEN 'green'
|
||||
WHEN COALESCE(SUM(CASE
|
||||
WHEN approve_override = 1 THEN 0
|
||||
ELSE (cwo.result = 'open' AND cwo.status = 'new')
|
||||
END), 0) > 0 THEN 'blue'
|
||||
WHEN COALESCE(SUM(CASE
|
||||
WHEN approve_override = 1 THEN 0
|
||||
ELSE (cwo.result = 'denied')
|
||||
|
||||
Reference in New Issue
Block a user