report sub updated
This commit is contained in:
parent
88656c33e8
commit
fd648e0b17
|
@ -183,7 +183,7 @@ data1 as (
|
|||
AAL.id,
|
||||
AAL.start_datetime
|
||||
),
|
||||
sub_data1 as (
|
||||
data1_sub as (
|
||||
SELECT
|
||||
TO_CHAR(start_datetime, 'YYYY-MM-01')::date as start_date,
|
||||
(date_trunc('month', end_datetime) + interval '1 month' - interval '1 day')::date as end_date,
|
||||
|
@ -800,6 +800,8 @@ invoice_data_sub as (SELECT
|
|||
res as (
|
||||
select * from data1
|
||||
UNION
|
||||
select * from data1_sub
|
||||
UNION
|
||||
select * from data2
|
||||
UNION
|
||||
select * from data2_sub_project
|
||||
|
|
Loading…
Reference in New Issue