profit should be neg or positive

This commit is contained in:
pawan.sharma 2022-04-11 17:54:48 +05:30
parent 855021c3a3
commit 08e49e1a06
1 changed files with 1 additions and 2 deletions

View File

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