From fcd8473d50bc0d31e8cd705f3dccdf815db0f6f7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Sep 2022 19:51:02 +0530 Subject: [PATCH] report query updated --- project_report/report/project_revenue_custom_report3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,