Report fixed cons updated
This commit is contained in:
parent
f257a192a0
commit
42a6402355
|
@ -44,20 +44,21 @@ class BudgetAmtAnalysis(models.Model):
|
|||
PRO.project_type as project_type,
|
||||
PRO.budgeted_revenue AS revenue
|
||||
FROM project_project PRO
|
||||
WHERE PRO.active = 't' and (PRO.pricing_type = 'fixed_rate' OR PRO.project_type = 'hours_no_limit')
|
||||
union
|
||||
SELECT
|
||||
PRO.id AS project_id,
|
||||
PRO.create_date AS create_date,
|
||||
PRO.partner_id AS partner_id,
|
||||
Pro_emp.employee_id AS employee_id,
|
||||
'Budgeted Revenue' as amount_type,
|
||||
PRO.pricing_type as pricing_type,
|
||||
PRO.project_type as project_type,
|
||||
Pro_emp.cost AS revenue
|
||||
FROM project_project PRO
|
||||
Left JOIN project_sale_line_employee_map Pro_emp ON Pro_emp.project_id = Pro.id
|
||||
WHERE PRO.active = 't' and PRO.pricing_type = 'employee_rate' and PRO.project_type = 'hours_in_consultant'
|
||||
WHERE PRO.active = 't'
|
||||
--and (PRO.pricing_type = 'fixed_rate' OR PRO.project_type = 'hours_no_limit')
|
||||
--union
|
||||
--SELECT
|
||||
--PRO.id AS project_id,
|
||||
--PRO.create_date AS create_date,
|
||||
--PRO.partner_id AS partner_id,
|
||||
--Pro_emp.employee_id AS employee_id,
|
||||
--'Budgeted Revenue' as amount_type,
|
||||
--PRO.pricing_type as pricing_type,
|
||||
--PRO.project_type as project_type,
|
||||
--Pro_emp.cost AS revenue
|
||||
--FROM project_project PRO
|
||||
--Left JOIN project_sale_line_employee_map Pro_emp ON Pro_emp.project_id = Pro.id
|
||||
--WHERE PRO.active = 't' and PRO.pricing_type = 'employee_rate' and PRO.project_type = 'hours_in_consultant'
|
||||
--union
|
||||
--SELECT
|
||||
--PRO.id AS project_id,
|
||||
|
|
Loading…
Reference in New Issue