report updated

This commit is contained in:
prakash 2022-04-28 12:50:11 +05:30
parent 9d050f312a
commit 111822605a
1 changed files with 2 additions and 2 deletions

View File

@ -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: