diff --git a/cor_custom/models/project.py b/cor_custom/models/project.py index 0ccbb0f..a333a27 100755 --- a/cor_custom/models/project.py +++ b/cor_custom/models/project.py @@ -140,7 +140,7 @@ class Project(models.Model): ##### CR Changes record.profit_amt = record.actual_revenue - record.consultant_cost - if record.profit_amt > 0: + if record.profit_amt > 0.0 and record.actual_revenue > 0.0: record.profit_per = (record.profit_amt / record.actual_revenue) * 100 ######################## if record.project_type == 'hours_in_consultant' and record.budgeted_hours > 0.0: