Report Actual revenue updated

This commit is contained in:
prakash 2022-03-11 15:04:16 +05:30
parent 5267fd3767
commit 4454191c4a
1 changed files with 1 additions and 2 deletions

View File

@ -132,9 +132,8 @@ class BudgetAmtAnalysis(models.Model):
Left JOIN project_sale_line_employee_map pro_emp ON pro_emp.project_id = pro.id
LEFT JOIN account_analytic_account AA ON PRO.analytic_account_id = AA.id
LEFT JOIN account_analytic_line AAL ON AAL.account_id = AA.id and AAL.project_id = PRO.id and AAL.employee_id = pro_emp.employee_id
WHERE PRO.active = 't' and AAL.employee_id is not null and PRO.pricing_type = 'employee_rate'
WHERE PRO.active = 't' and AAL.employee_id is not null and PRO.pricing_type = 'employee_rate' and PRO.project_type = 'hours_in_consultant'
group by pro.id, aal.employee_id, aal.date, aal.start_datetime, pro_emp.price_unit
--and PRO.project_type = 'hours_in_consultant'
union
SELECT
pro.id AS project_id,