commit: 2025-03-19 17:19:13
This commit is contained in:
parent
6b76d9d935
commit
f2f4dcedae
@ -716,3 +716,8 @@ UPDATE rlarp.osmf SET iter = 'short ship' WHERE calc_status = 'CLOSED' AND flag
|
||||
|
||||
---identify goofy ship dates: causes disconnect with sales when splicing in a forecast that has this problem-------------------
|
||||
UPDATE rlarp.osmf SET iter = 'bad date' WHERE sdate < odate;
|
||||
|
||||
--flag budget orders that are planned to book before the budget
|
||||
UPDATE rlarp.osmf SET iter = 'py carryover' WHERE iter = 'copy' AND odate <= '2025-06-01';
|
||||
|
||||
--flag past due orders that are dropping out in shipments on current date
|
||||
|
||||
5
build/dump_all.pg.slq
Normal file
5
build/dump_all.pg.slq
Normal file
@ -0,0 +1,5 @@
|
||||
SELECT
|
||||
o.*
|
||||
,o.lbs * o.fb_qty ext_lbs
|
||||
FROM
|
||||
rlarp.osmf o
|
||||
0
build/dump_all.pg.sql
Normal file
0
build/dump_all.pg.sql
Normal file
@ -5,6 +5,7 @@ SELECT
|
||||
to_char(CASE WHEN extract(month FROM o.sdate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.sdate),'FM00')||' - '||to_char(o.sdate,'TMMon') ship_month,
|
||||
version,
|
||||
iter,
|
||||
calc_status,
|
||||
sum(fb_val_loc * r_rate) value_loc
|
||||
FROM
|
||||
rlarp.osmf o
|
||||
@ -17,7 +18,8 @@ GROUP BY
|
||||
sseas,
|
||||
to_char(CASE WHEN extract(month FROM o.sdate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.sdate),'FM00')||' - '||to_char(o.sdate,'TMMon'),
|
||||
version,
|
||||
iter
|
||||
iter,
|
||||
calc_status
|
||||
ORDER BY
|
||||
oseas asc,
|
||||
order_month asc
|
||||
|
||||
0
offline/snap_last_price.pg.sql
Normal file
0
offline/snap_last_price.pg.sql
Normal file
Loading…
Reference in New Issue
Block a user