diff --git a/example_usage.ms.sql b/example_usage.ms.sql index 8c04bac..af64ec4 100644 --- a/example_usage.ms.sql +++ b/example_usage.ms.sql @@ -2,16 +2,23 @@ EXEC pricing.single_price_call @bill = 'FARM0001', @ship = 'KEYB0001', - @part = 'HZP3E100E21D050', - @v1ds = 'v1:T..BDL..', + @part = 'HSI1000BB661050', + @v1ds = 'v1:L..CSE..D', @vol = 50000; +EXEC pricing.single_price_call + @bill = 'BFGS0001', + @ship = 'NEWM0004', + @part = 'HTI10754B661050', + @v1ds = 'v1:L..PLT..', + @vol = 14400; + SELECT * FROM pricing.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100' EXEC pricing.single_price_call @bill = 'GRIF0001', @ship = 'GRIF0001', - @part = 'XNS0T1G3G18B96', + @part = 'XNS0T1G3G18B096', @v1ds = 'v1:B..PLT..', @vol = 9600; diff --git a/example_usage.pg.sql b/example_usage.pg.sql index c075e4d..6acdb14 100644 --- a/example_usage.pg.sql +++ b/example_usage.pg.sql @@ -3,9 +3,20 @@ SELECT FROM pricequote.single_price_call( 'FARM0001', 'KEYB0001', - 'HZP3E100E21D050', + 'HZP3E103E21D050', 'v1:T..BDL..', 50000 ) f -SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100' \ No newline at end of file +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 = 113278 + AND qrn = 5 \ No newline at end of file