Report total revenue header updated
This commit is contained in:
parent
fae6d7a280
commit
2a551ec465
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue