vault backup: 2023-11-03 15:59:50
This commit is contained in:
parent
cfa7960157
commit
3df3595aad
@ -1,2 +1,2 @@
|
|||||||
--select gg.d from rlarp.get_guidance('DIAM0004','DIAM0004','AMK06000G18B054',5000,2024) gg(d);
|
--select gg.d from rlarp.get_guidance('DIAM0004','DIAM0004','AMK06000G18B054',5000,2024) gg(d);
|
||||||
select gg.d from rlarp.get_guidance($1,$2, $3, 5000,2024) gg(d);
|
select gg.d doc from rlarp.get_guidance($1,$2, $3, 5000,2024) gg(d);
|
||||||
|
@ -51,7 +51,7 @@ BEGIN
|
|||||||
|
|
||||||
----------------price history-------------------------------
|
----------------price history-------------------------------
|
||||||
SELECT jsonb_build_object('hist',rlarp.gethist(_mold, _cust)) INTO _rslt ;
|
SELECT jsonb_build_object('hist',rlarp.gethist(_mold, _cust)) INTO _rslt ;
|
||||||
RAISE NOTICE '%', _rslt;
|
--RAISE NOTICE '%', _rslt;
|
||||||
|
|
||||||
----------------target pricing------------------------------
|
----------------target pricing------------------------------
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -50,7 +50,8 @@ CREATE TABLE IF NOT EXISTS rlarp.price_pool_dev AS (
|
|||||||
LEFT OUTER JOIN rlarp.cust c ON
|
LEFT OUTER JOIN rlarp.cust c ON
|
||||||
c.code = CASE o.chan WHEN 'DIR' THEN o.bill_cust ELSE o.ship_cust END
|
c.code = CASE o.chan WHEN 'DIR' THEN o.bill_cust ELSE o.ship_cust END
|
||||||
WHERE
|
WHERE
|
||||||
o.version <> '6/1 Order Book'
|
o.version IN ('Actual','Quotes')
|
||||||
|
AND o.oseas >= 2015
|
||||||
--AND o.part like 'SQL035%'
|
--AND o.part like 'SQL035%'
|
||||||
--AND o.calc_status <> 'CANCELED'
|
--AND o.calc_status <> 'CANCELED'
|
||||||
--AND o.fs_line = '41010'
|
--AND o.fs_line = '41010'
|
||||||
|
Loading…
Reference in New Issue
Block a user