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: