commit: 2025-08-11 17:42:43

This commit is contained in:
Paul Trowbridge 2025-08-11 17:42:43 -04:00
parent 8624add269
commit 062b49e60c
2 changed files with 23 additions and 5 deletions

View File

@ -2,16 +2,23 @@
EXEC pricing.single_price_call
@bill = 'FARM0001',
@ship = 'KEYB0001',
@part = 'HZP3E100E21D050',
@v1ds = 'v1:T..BDL..',
@part = 'HSI1000BB661050',
@v1ds = 'v1:L..CSE..D',
@vol = 50000;
EXEC pricing.single_price_call
@bill = 'BFGS0001',
@ship = 'NEWM0004',
@part = 'HTI10754B661050',
@v1ds = 'v1:L..PLT..',
@vol = 14400;
SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
EXEC pricing.single_price_call
@bill = 'GRIF0001',
@ship = 'GRIF0001',
@part = 'XNS0T1G3G18B96',
@part = 'XNS0T1G3G18B096',
@v1ds = 'v1:B..PLT..',
@vol = 9600;

View File

@ -3,9 +3,20 @@ SELECT
FROM pricequote.single_price_call(
'FARM0001',
'KEYB0001',
'HZP3E100E21D050',
'HZP3E103E21D050',
'v1:T..BDL..',
50000
) f
SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
SELECT
pc.expl
FROM
pricequote.live_quotes
LEFT JOIN LATERAL pricequote.single_price_call(
billto, shipto, part, v1ds, units_each
) pc ON TRUE
WHERE
qid = 113278
AND qrn = 5