history should be in an array
This commit is contained in:
parent
310f1dc8f9
commit
d37aded2c9
@ -6,6 +6,8 @@ EXEC pricing.single_price_call
|
||||
@v1ds = 'v1:T..BDL..',
|
||||
@vol = 50000;
|
||||
|
||||
SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
|
||||
|
||||
EXEC pricing.single_price_call
|
||||
@bill = 'GRIF0001',
|
||||
@ship = 'GRIF0001',
|
||||
|
@ -1,5 +1,5 @@
|
||||
SELECT
|
||||
*
|
||||
ui_json->'details'
|
||||
FROM pricequote.single_price_call(
|
||||
'FARM0001',
|
||||
'KEYB0001',
|
||||
@ -8,3 +8,4 @@ FROM pricequote.single_price_call(
|
||||
50000
|
||||
) f
|
||||
|
||||
SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'
|
@ -455,7 +455,7 @@ BEGIN
|
||||
' | Dataseg: ', ISNULL(q.last_dataseg, 'N/A'),
|
||||
' | Qty: ', ISNULL(CAST(q.last_qty AS varchar(32)), 'N/A')
|
||||
) AS note
|
||||
FOR JSON PATH, WITHOUT_ARRAY_WRAPPER
|
||||
FOR JSON PATH
|
||||
) AS details
|
||||
|
||||
UNION ALL
|
||||
|
@ -105,7 +105,7 @@ lq AS MATERIALIZED (
|
||||
-- ,jsonb_pretty(pricing) pricing
|
||||
,p.guidance_price
|
||||
,p.guidance_reason
|
||||
,jsonb_pretty(p.expl) expl
|
||||
,jsonb_pretty(p.ui_json->'details') expl
|
||||
FROM
|
||||
lq
|
||||
LEFT OUTER JOIN "CMS.CUSLG".itemm i ON
|
||||
@ -131,7 +131,6 @@ lq AS MATERIALIZED (
|
||||
lq.billto
|
||||
,lq.shipto
|
||||
,lq.part
|
||||
,substring(lq.part,1,8)
|
||||
,lq.v1ds
|
||||
,lq.units_each
|
||||
) p ON TRUE
|
||||
|
Loading…
Reference in New Issue
Block a user