Merge branch 'copy_master' of https://gitlab.sunarctechnologies.com/prakash.jain/cor-odoo into copy_master
This commit is contained in:
commit
ad93e0fe06
|
@ -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