From 2a551ec4654292adc90e5f5fda482aaed925005b Mon Sep 17 00:00:00 2001 From: prakash Date: Wed, 13 Apr 2022 12:03:10 +0530 Subject: [PATCH] Report total revenue header updated --- project_report/report/project_revenue_custom_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project_report/report/project_revenue_custom_report.py b/project_report/report/project_revenue_custom_report.py index 06b18aa..dce246a 100755 --- a/project_report/report/project_revenue_custom_report.py +++ b/project_report/report/project_revenue_custom_report.py @@ -232,7 +232,8 @@ class ProjectRevenueCustomReport(models.Model): 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: - line['actual_revenue'] = hourly_rate * line['unit_amount'] + if hourly_rate != 0: + line['actual_revenue'] = hourly_rate * line['unit_amount'] if 'unit_amount' in line and 'timesheet_cost' in line and 'id' in line: line['actual_cost'] = line['timesheet_cost'] * line['unit_amount'] if 'overall_budgeted_revenue' in line and 'budgeted_hours' in line and 'id' in line: