increase range
This commit is contained in:
parent
57adefbd4b
commit
aa50440ec5
@ -135,7 +135,7 @@ baseline AS (
|
||||
WHERE
|
||||
(
|
||||
--base period orders booked....
|
||||
o.odate BETWEEN '2024-06-01' AND '2025-03-19'
|
||||
o.odate BETWEEN '2024-06-01' AND '2025-03-26'
|
||||
--...or any open orders currently booked before cutoff....
|
||||
--OR (o.calc_status IN ('OPEN','BACKORDER') and o.odate < '2023-03-01')
|
||||
--...or anything that shipped in that period
|
||||
@ -292,7 +292,7 @@ baseline AS (
|
||||
greatest(least(o.sdate,gld.edat),gld.sdat) + interval '1 year' BETWEEN ss.sdat AND ss.edat
|
||||
WHERE
|
||||
true
|
||||
AND o.odate BETWEEN '2024-03-19' AND '2024-05-31'
|
||||
AND o.odate BETWEEN '2024-03-26' AND '2024-05-31'
|
||||
AND fs_line = '41010'
|
||||
AND calc_status <> 'CANCELED'
|
||||
--AND NOT (calc_status = 'CLOSED' AND flag = 'REMAINDER')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user