commit: 2025-04-10 16:26:50
This commit is contained in:
parent
d9513aa891
commit
5385deaae8
@ -136,6 +136,7 @@ customers AS (
|
||||
-----------------scenario----------------------------
|
||||
-- AND version IN ('b26')
|
||||
AND order_season = 2026
|
||||
AND ship_season = 2026
|
||||
-----------------additional params-------------------
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND order_date <= ship_date
|
||||
|
||||
@ -4511,13 +4511,14 @@ cflag AS MATERIALIZED (
|
||||
AND c.dsm = o.dsm
|
||||
WHERE
|
||||
VERSION = 'Actual'
|
||||
AND o.oseas >= 2018
|
||||
AND o.oseas >= 2025
|
||||
AND calc_status <> 'CANCELED'
|
||||
AND o.fs_line = '41010'
|
||||
AND o.part <> ''
|
||||
AND substring(o.glec,1,1) <= '2'
|
||||
AND o.qty <> 0
|
||||
AND o.sseas IS NOT NULL
|
||||
AND o.sales_usd <> 0
|
||||
-- AND customer in (select distinct renamed FROM newc )
|
||||
GROUP BY
|
||||
o.bill_dba
|
||||
@ -4559,6 +4560,7 @@ cflag AS MATERIALIZED (
|
||||
FROM
|
||||
pgrp
|
||||
)
|
||||
-- SELECT * FROM seq WHERE ship_dba like 'COSTA%'
|
||||
,partlist AS (
|
||||
SELECT
|
||||
billto_group
|
||||
|
||||
Loading…
Reference in New Issue
Block a user