diff --git a/project_report/report/project_revenue_custom_report3.py b/project_report/report/project_revenue_custom_report3.py index 1e5c503..1bf618f 100644 --- a/project_report/report/project_revenue_custom_report3.py +++ b/project_report/report/project_revenue_custom_report3.py @@ -722,6 +722,8 @@ group by if 'pro_hourly_rate' in line and 'budgeted_hours' in line: if line['budgeted_hours'] > 0: line['pro_hourly_rate'] = line['budgeted_revenue'] / line['budgeted_hours'] + if 'actual_revenue' in line and 'actual_cost' in line and not 'expenses_amt' in line: + line['profit_amt'] = line['actual_revenue'] - line['actual_cost'] if 'actual_revenue' in line and 'actual_cost' in line and 'expenses_amt' in line: line['profit_amt'] = line['actual_revenue'] - line['actual_cost'] - line['expenses_amt'] if 'profit_amt' in line and 'actual_revenue' in line: