commit: 2025-04-09 07:19:54
This commit is contained in:
parent
7bad7774eb
commit
84d09c4b83
@ -197,6 +197,18 @@ WHERE
|
||||
c.part = o.part
|
||||
AND c.plnt = o.plnt;
|
||||
|
||||
|
||||
|
||||
UPDATE
|
||||
rlarp.osmfs o
|
||||
SET
|
||||
fb_cst_loc_fut = c.std * o.fb_qty
|
||||
FROM
|
||||
rlarp.arcstx c
|
||||
WHERE
|
||||
c.part = o.part
|
||||
AND c.plnt = o.plnt;
|
||||
|
||||
----------------------------SET BILL-TO REP------------------------------------
|
||||
|
||||
UPDATE
|
||||
|
||||
@ -26,10 +26,11 @@ SEG AS (
|
||||
SELECT
|
||||
o.*
|
||||
,o.lbs * o.fb_qty ext_lbs
|
||||
,s.segm
|
||||
,COALESCE(s.segm,o.glec) segm
|
||||
,og.sortmo omon
|
||||
,sg.sortmo smon
|
||||
,COALESCE(f.flag,'Not Forecasted') price_flag
|
||||
,coalesce(i.futstdus,o.fb_cst_loc_cur * c_rate) cash_cost
|
||||
FROM
|
||||
rlarp.osmfs o
|
||||
LEFT OUTER JOIN seg s ON
|
||||
@ -41,3 +42,5 @@ FROM
|
||||
LEFT OUTER JOIN rlarp.cust_flag f ON
|
||||
f.shipgrp = o.shipgrp
|
||||
AND f.dsm = o.dsm
|
||||
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
|
||||
i.item = o.part
|
||||
|
||||
Loading…
Reference in New Issue
Block a user