report bud hrs and rev display updated
This commit is contained in:
parent
0a82aa75a3
commit
dfc9116dd2
|
@ -261,11 +261,11 @@ data2 as (
|
|||
0.0 AS profit_amt,
|
||||
0.0 AS profit_per
|
||||
FROM pro_data
|
||||
right join account_analytic_line AAL on AAL.project_id=pro_data.pproject_id
|
||||
--right join account_analytic_line AAL on AAL.project_id=pro_data.pproject_id
|
||||
WHERE pro_data.pricing_type='employee_rate' and pro_data.project_type='hours_no_limit'
|
||||
and AAL.sub_project is null
|
||||
--and AAL.sub_project is null
|
||||
and COALESCE(pro_data.is_sub_project, FALSE) = False
|
||||
and (pro_data.budgeted_revenue>0 or pro_data.budgeted_hours>0)
|
||||
and (pro_data.budgeted_revenue>0 or pro_data.budgeted_hours>0 or pro_data.expenses_amt>0)
|
||||
group by
|
||||
pro_data.pproject_id,
|
||||
pro_data.project_active,
|
||||
|
@ -364,7 +364,7 @@ data2_sub_project as (
|
|||
FROM sub_pro_data
|
||||
WHERE sub_pro_data.pricing_type='employee_rate' and sub_pro_data.project_type='hours_no_limit'
|
||||
and sub_pro_data.is_sub_project = TRUE
|
||||
and (sub_pro_data.budgeted_revenue>0 or sub_pro_data.budgeted_hours>0)
|
||||
and (sub_pro_data.budgeted_revenue>0 or sub_pro_data.budgeted_hours>0 or sub_pro_data.expenses_amt>0)
|
||||
group by
|
||||
sub_pro_data.parent_project,
|
||||
sub_pro_data.project_active,
|
||||
|
|
Loading…
Reference in New Issue