change in profit calculation

This commit is contained in:
pawan.sharma 2022-04-11 12:38:57 +05:30
parent 6380d8c25d
commit 56b75ac205
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
########################