commit: 2025-08-01 18:14:05

This commit is contained in:
Paul Trowbridge 2025-08-01 18:14:05 -04:00
parent 7fec5e8ace
commit bfc1e4a2e3
5 changed files with 55 additions and 9 deletions

1
Scripts/Script-1.sql Normal file
View File

@ -0,0 +1 @@
SELECT * FROM rlarp.psb_c WHERE mast = 'IJT03060G18C300LZEPA' ORDER BY cline asc

1
Scripts/Script-2.sql Normal file
View File

@ -0,0 +1 @@
SELECT * FROM rlarp.osm_chg

1
Scripts/Script-3.sql Normal file
View File

@ -0,0 +1 @@
SELECT * FROM FAnalysis.RPT.osm_chg

View File

@ -9,12 +9,13 @@ EXEC pricing.process_queue
EXEC pricing.single_price_call
@bill = 'GRIF0001',
@ship = 'JRSG0001',
@ship = 'GRIF0001',
@part = 'XNS0T1G3G18B096',
@stlc = 'XNS0T1G3',
@v1ds = 'v1:B..PLT..',
@vol = 9600;
SELECT * FROM FAnalysis.PRICING.lastprice l
SELECT
*

View File

@ -1,9 +1,51 @@
SELECT * FROM
pricequote.single_price_call(
'GRIF0001' ,
'GRIF0001' ,
'XNS0T1G3G18B096' ,
'XNS0T1G3',
'v1:B.L.PLT..',
9600
)
'CYGR0002' ,
'CYGR0002' ,
'SVP03002G18C800' ,
'SVP03000',
'v1:B..PLT..',
100000
)
SELECT pricing FROM rlarp.osm_stack l WHERE l.customer ='CROS-B-CREST FARM' AND partgroup = 'STG04250'
CALL pricequote.process_queue()
REFRESH MATERIALIZED VIEW rlarp.osm_stack_pretty;
SELECT
q.qid,
q.qrn,
-- q.qcustomer,
q.partbuilt,
i.pricegroup,
q.v1ds,
q.units_each,
q.targetp,
q.lastsalesprice,
-- q.finalrecommendedprice,
-- q.lowerpricelimit,
-- q.upperpricelimit,
q.curstdus,
q.price,
p.guidance_price guidance,
p.expl
FROM
pricequote.live_quotes q
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
i.item = q.part
LEFT JOIN LATERAL pricequote.single_price_call(
q.billto
,q.shipto
,q.part
,substring(q.part,1,8)
,q.v1ds
,q.units_each
) p ON TRUE
WHERE
qstat LIKE 'Submitted%'
AND qid = 113035 --AND q.qrn = 1
ORDER BY
qrn ASC