report updated

This commit is contained in:
projectsodoo 2020-12-21 16:25:29 +05:30
parent b76fbefdc6
commit 089a7b4dad
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class BudgetAmtAnalysis(models.Model):
--PRO.budgeted_hours AS budgeted_revenue,
--sum(AAL.amount) AS budgeted_revenue
SO.amount_total AS budgeted_revenue,
SO.amount_total - sum(AAL.amount) AS actual_revenue
SO.amount_total - sum(-1 * AAL.amount) AS actual_revenue
FROM project_project PRO
LEFT JOIN sale_order SO ON PRO.sale_order_id = SO.id
LEFT JOIN account_analytic_account AA ON PRO.analytic_account_id = AA.id