vault backup: 2023-11-08 09:00:12

This commit is contained in:
Paul Trowbridge 2023-11-08 09:00:12 -05:00
parent 90f05df0d7
commit 91b309bde4

View File

@ -35,7 +35,7 @@ BEGIN
----------------base product--------------------------------
SELECT
m.part_group, i.stlc, i.v1ds,i.v0ds,jsonb_build_object('assc',i.assc,'majg',i.majg::int,'coltier',i.coltier) idxk
m.part_group, i.stlc, i.v1ds,i.v0ds,jsonb_strip_nulls(jsonb_build_object('assc',CASE WHEN i.assc <> '' THEN i.assc ELSE null::text END,'majg',i.majg::int,'coltier',i.coltier)) idxk
INTO
_mold,_stlc,_v1ds , _v0ds, _iidx
FROM
@ -103,6 +103,7 @@ BEGIN
_rslt := _rslt||COALESCE(_v1tp,'{}'::jsonb);
----------------inflation index-----------------------------
RAISE NOTICE 'infaltion : %', jsonb_pretty(_iidx);
SELECT
jsonb_build_object(
'iidx'
@ -123,7 +124,6 @@ BEGIN
)
GROUP BY
priority;
--RAISE NOTICE 'target: %', jsonb_pretty(_targ);
_rslt := _rslt||COALESCE(_iidx,'{}'::jsonb);
----------------list ppricing-------------------------------
SELECT coalesce(rlarp.get_list(_bill, _ship, _item, _qty),'{}'::jsonb) INTO _list;