From 3df3595aadd28b18b3a21799a34917b157221f5c Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 3 Nov 2023 15:59:50 -0400 Subject: [PATCH] vault backup: 2023-11-03 15:59:50 --- sql/get.pg.sql | 2 +- sql/get_guidance.pg.sql | 2 +- sql/price_pool.sql | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sql/get.pg.sql b/sql/get.pg.sql index 7c454d0..795e8cb 100644 --- a/sql/get.pg.sql +++ b/sql/get.pg.sql @@ -1,2 +1,2 @@ --select gg.d from rlarp.get_guidance('DIAM0004','DIAM0004','AMK06000G18B054',5000,2024) gg(d); -select gg.d from rlarp.get_guidance($1,$2, $3, 5000,2024) gg(d); +select gg.d doc from rlarp.get_guidance($1,$2, $3, 5000,2024) gg(d); diff --git a/sql/get_guidance.pg.sql b/sql/get_guidance.pg.sql index 721c57d..1c665c3 100644 --- a/sql/get_guidance.pg.sql +++ b/sql/get_guidance.pg.sql @@ -51,7 +51,7 @@ BEGIN ----------------price history------------------------------- SELECT jsonb_build_object('hist',rlarp.gethist(_mold, _cust)) INTO _rslt ; - RAISE NOTICE '%', _rslt; + --RAISE NOTICE '%', _rslt; ----------------target pricing------------------------------ SELECT diff --git a/sql/price_pool.sql b/sql/price_pool.sql index 32a96f6..40e3806 100644 --- a/sql/price_pool.sql +++ b/sql/price_pool.sql @@ -50,7 +50,8 @@ CREATE TABLE IF NOT EXISTS rlarp.price_pool_dev AS ( LEFT OUTER JOIN rlarp.cust c ON c.code = CASE o.chan WHEN 'DIR' THEN o.bill_cust ELSE o.ship_cust END WHERE - o.version <> '6/1 Order Book' + o.version IN ('Actual','Quotes') + AND o.oseas >= 2015 --AND o.part like 'SQL035%' --AND o.calc_status <> 'CANCELED' --AND o.fs_line = '41010'