Report profit amt if cond updated

This commit is contained in:
root 2022-10-03 10:44:01 +05:30
parent 86c8c0428d
commit 51024ef211
1 changed files with 2 additions and 0 deletions

View File

@ -722,6 +722,8 @@ group by
if 'pro_hourly_rate' in line and 'budgeted_hours' in line:
if line['budgeted_hours'] > 0:
line['pro_hourly_rate'] = line['budgeted_revenue'] / line['budgeted_hours']
if 'actual_revenue' in line and 'actual_cost' in line and not 'expenses_amt' in line:
line['profit_amt'] = line['actual_revenue'] - line['actual_cost']
if 'actual_revenue' in line and 'actual_cost' in line and 'expenses_amt' in line:
line['profit_amt'] = line['actual_revenue'] - line['actual_cost'] - line['expenses_amt']
if 'profit_amt' in line and 'actual_revenue' in line: