From 08e49e1a06587d655716b426db7daabc604194ab Mon Sep 17 00:00:00 2001 From: "pawan.sharma" Date: Mon, 11 Apr 2022 17:54:48 +0530 Subject: [PATCH] profit should be neg or positive --- cor_custom/models/project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cor_custom/models/project.py b/cor_custom/models/project.py index 461c412..ecdbdfa 100755 --- a/cor_custom/models/project.py +++ b/cor_custom/models/project.py @@ -140,8 +140,7 @@ class Project(models.Model): # record.profit_per = (record.profit_amt / record.budgeted_revenue) * 100 ##### CR Changes - if record.actual_revenue > record.total_expenses: - record.profit_amt = record.actual_revenue - record.total_expenses + record.profit_amt = record.actual_revenue - record.total_expenses if record.profit_amt > 0.0 and record.actual_revenue > 0.0: record.profit_per = (record.profit_amt / record.actual_revenue) * 100 ########################