Compare commits
No commits in common. "3cb885c336763871db7d271e6fcd856c5c493adc" and "e630c3c3140694ad122b4c0df26b78816c5884c2" have entirely different histories.
3cb885c336
...
e630c3c314
@ -103,9 +103,6 @@ lq AS MATERIALIZED (
|
||||
-- ,(pricing->'guidance'->>'optimization')::numeric optimization
|
||||
-- ,(pricing->'guidance'->>'inflationFactor')::numeric inflation
|
||||
-- ,jsonb_pretty(pricing) pricing
|
||||
,p.guidance_price
|
||||
,p.guidance_reason
|
||||
,p.expl
|
||||
FROM
|
||||
lq
|
||||
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
|
||||
@ -126,15 +123,7 @@ lq AS MATERIALIZED (
|
||||
AND nt.ds = lq.v1ds
|
||||
AND nt.chan = lq.qchan
|
||||
AND nt.tier = CASE lq.qchan WHEN 'DIR' THEN bc.tier ELSE sc.tier END
|
||||
AND CASE WHEN coalesce(i.mpck,0) = 0 THEN FALSE ELSE floor(lq.units_each/i.mpck)::int <@ nt.vol END
|
||||
LEFT JOIN LATERAL pricequote.single_price_call(
|
||||
lq.billto
|
||||
,lq.shipto
|
||||
,lq.part
|
||||
,substring(lq.part,1,8)
|
||||
,lq.v1ds
|
||||
,lq.units_each
|
||||
) p ON TRUE
|
||||
AND floor(lq.units_each/i.mpck)::int <@ nt.vol
|
||||
WHERE
|
||||
lq.qstat ~ 'Submitted'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user