commit: 2025-08-12 23:08:02
This commit is contained in:
parent
f2fe91f078
commit
7f990ab611
@ -8,10 +8,10 @@ EXEC pricing.single_price_call
|
|||||||
|
|
||||||
EXEC pricing.single_price_call
|
EXEC pricing.single_price_call
|
||||||
@bill = 'BFGS0001',
|
@bill = 'BFGS0001',
|
||||||
@ship = 'NEWM0004',
|
@ship = 'BOBS0002',
|
||||||
@part = 'HTI10754B661050',
|
@part = 'HTI10754B12B024LXB04',
|
||||||
@v1ds = 'v1:L..PLT..',
|
@v1ds = 'v1:L.L.PLT..',
|
||||||
@vol = 14400;
|
@vol = 172000;
|
||||||
|
|
||||||
SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
|
SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
|
||||||
|
|
||||||
|
@ -18,6 +18,16 @@ FROM pricequote.single_price_call(
|
|||||||
50000
|
50000
|
||||||
) f
|
) f
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
ui_json
|
||||||
|
FROM pricequote.single_price_call(
|
||||||
|
'BFGS0001',
|
||||||
|
'BOBS0002',
|
||||||
|
'HTI10754B12B024LXB04',
|
||||||
|
'v1:L.L.PLT..',
|
||||||
|
172000
|
||||||
|
) 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
|
SELECT
|
||||||
|
@ -20,6 +20,7 @@ BEGIN
|
|||||||
best JSONB := NULL;
|
best JSONB := NULL;
|
||||||
best_date DATE := NULL;
|
best_date DATE := NULL;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
-- set dates
|
||||||
IF dsq IS NOT NULL AND (dsq->>'price') IS NOT NULL THEN
|
IF dsq IS NOT NULL AND (dsq->>'price') IS NOT NULL THEN
|
||||||
dsq_date := (dsq->>'odate')::date;
|
dsq_date := (dsq->>'odate')::date;
|
||||||
END IF;
|
END IF;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
====================================================================================
|
====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
--DROP FUNCTION pricequote.single_price_call(text,text,text,text,numeric);
|
--DROP FUNCTION pricequote.single_price_call(text,text,text,text,numeric) CASCADE;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION pricequote.single_price_call(
|
CREATE OR REPLACE FUNCTION pricequote.single_price_call(
|
||||||
_bill TEXT,
|
_bill TEXT,
|
||||||
@ -79,6 +79,7 @@ RETURNS TABLE (
|
|||||||
last_order TEXT,
|
last_order TEXT,
|
||||||
last_quote TEXT,
|
last_quote TEXT,
|
||||||
last_source TEXT,
|
last_source TEXT,
|
||||||
|
hist JSONB,
|
||||||
tprice NUMERIC,
|
tprice NUMERIC,
|
||||||
tmath JSONB,
|
tmath JSONB,
|
||||||
volume_range TEXT,
|
volume_range TEXT,
|
||||||
@ -567,7 +568,7 @@ BEGIN
|
|||||||
_chan, _cust, _tier, _pltq, _plevel, _partgroup, _part_v1ds, _v0ds,
|
_chan, _cust, _tier, _pltq, _plevel, _partgroup, _part_v1ds, _v0ds,
|
||||||
_curstd_orig, _futstd_orig, _curstd, _futstd, _curstd_last, _futstd_last,
|
_curstd_orig, _futstd_orig, _curstd, _futstd, _curstd_last, _futstd_last,
|
||||||
_customized, _last_premium, _last_premium_method, _last_price_norm, _last_isdiff, _last_v0ds, _tprice_last,
|
_customized, _last_premium, _last_premium_method, _last_price_norm, _last_isdiff, _last_v0ds, _tprice_last,
|
||||||
_last_price, _last_qty, _last_dataseg, _last_date, _last_order, _last_quote, _last_source,
|
_last_price, _last_qty, _last_dataseg, _last_date, _last_order, _last_quote, _last_source, _hist,
|
||||||
_tprice, _tmath, _volume_range,
|
_tprice, _tmath, _volume_range,
|
||||||
_list_price, _list_code, _listprice_eff, _list_relevance,
|
_list_price, _list_code, _listprice_eff, _list_relevance,
|
||||||
_guidance_price, _guidance_reason,
|
_guidance_price, _guidance_reason,
|
||||||
|
Loading…
Reference in New Issue
Block a user