diff --git a/example_usage.ms.sql b/example_usage.ms.sql index aa891bd..b667971 100644 --- a/example_usage.ms.sql +++ b/example_usage.ms.sql @@ -6,12 +6,12 @@ EXEC pricing.single_price_call @v1ds = 'v1:B..PLT..', @vol = 9600; -EXEC pricing.single_price_call - @bill = 'FARM0001', - @ship = 'KEYB0001', - @part = 'HCA10000B661100', - @v1ds = 'v1:T..CSE..D', - @vol = 172000; +EXEC pricing.pricing.single_price_call + @bill = 'VASA0002', + @ship = 'VASA0004', + @part = 'HZP3E100E24C800', + @v1ds = 'v1:T..CSE..', + @vol = 19200; SELECT g.* FROM (SELECT @@ -27,8 +27,6 @@ SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgrou SELECT * FROM pricing.pricelist_ranged pr WHERE pr.jcpart = 'XNS0T1G3G18B096' AND -SELECT * FROM CMSInterfaceIN.[CMS.CUSLG]. - EXEC pricing.single_price_call @bill = 'GRIF0001', @ship = 'GRIF0001', diff --git a/procs/single_price_call.ms.sql b/procs/single_price_call.ms.sql index c2da5fe..6390636 100644 --- a/procs/single_price_call.ms.sql +++ b/procs/single_price_call.ms.sql @@ -446,6 +446,7 @@ BEGIN ,q.last_premium AS last_premium ,q.last_premium_method AS last_premium_method ,q.last_price_norm AS last_price_norm + ,q.plevel AS plevel ,q.listcode AS listcode ,q.listprice AS listprice ,q.listprice_eff AS listprice_eff diff --git a/procs/single_price_call.pg.sql b/procs/single_price_call.pg.sql index feeefc6..4b42780 100644 --- a/procs/single_price_call.pg.sql +++ b/procs/single_price_call.pg.sql @@ -438,6 +438,7 @@ BEGIN ), 'list', jsonb_build_object( + 'plevel', _plevel, 'listcode', _list_code, 'listprice', _list_price, 'listprice_eff', _listprice_eff,