SELECT 
	ui_json->'details'
FROM pricequote.single_price_call(
    'FARM0001',
    'KEYB0001',
    'HCA10000B661100',
    'v1:T..CSE..D',
    50000
) f

SELECT 
	ui_json->'details'
FROM pricequote.single_price_call(
    'FARM0001',
    'KEYB0001',
    'HZP3E103E21D050',
    'v1:C..BDL..',
    50000
) 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
	pc.expl
FROM 
	pricequote.live_quotes
	LEFT JOIN LATERAL pricequote.single_price_call(
		billto, shipto, part, v1ds, units_each
	) pc ON TRUE
WHERE 
	qid  = 113173
	AND qrn = 32