This commit is contained in:
prakash 2022-04-11 13:01:24 +05:30
commit ad93e0fe06
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ class Project(models.Model):
# record.profit_per = (record.profit_amt / record.budgeted_revenue) * 100
##### CR Changes
record.profit_amt = record.actual_revenue - record.consultant_cost
if 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
########################