From 111822605a39c60ca339da11eb732a1d23d39864 Mon Sep 17 00:00:00 2001 From: prakash Date: Thu, 28 Apr 2022 12:50:11 +0530 Subject: [PATCH] report updated --- project_report/report/project_revenue_custom_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_report/report/project_revenue_custom_report.py b/project_report/report/project_revenue_custom_report.py index e77ac2b..7adae6c 100755 --- a/project_report/report/project_revenue_custom_report.py +++ b/project_report/report/project_revenue_custom_report.py @@ -233,9 +233,9 @@ class ProjectRevenueCustomReport(models.Model): hourly_rate = 0 actual_cost = 0 try: - if 'pro_hourly_rate' in line: - actual_cost = line['actual_cost'] if 'actual_cost' in line: + actual_cost = line['actual_cost'] + if 'pro_hourly_rate' in line: hourly_rate = line['pro_hourly_rate'] if 'unit_amount' in line and 'pro_hourly_rate' in line: # and 'id' in line if hourly_rate != 0: