diff --git a/project_report/report/project_revenue_custom_report3.py b/project_report/report/project_revenue_custom_report3.py index 8a66324..d8617d7 100644 --- a/project_report/report/project_revenue_custom_report3.py +++ b/project_report/report/project_revenue_custom_report3.py @@ -76,7 +76,7 @@ with pro_data as ( cons_data1 as ( SELECT date_trunc('month', min(PRO_EMP.start_date)) AS min, - date_trunc('month', max(coalesce(PRO_EMP.end_date, current_date))) AS max, + date_trunc('month', coalesce(max(PRO_EMP.end_date), current_date)) AS max, PRO_EMP.start_date as start_date, coalesce(PRO_EMP.end_date, current_date) as end_date, PRO_EMP.project_id,