change in profit calculation
This commit is contained in:
parent
6380d8c25d
commit
56b75ac205
|
@ -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
|
||||
########################
|
||||
|
|
Loading…
Reference in New Issue