From ac0a1e4ea128e3c33eb7a54c14e2696b127eb9ab Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Dec 2024 14:40:01 -0500 Subject: [PATCH] commit: 2024-12-13 14:40:01 --- sql/quote_review.pg.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/quote_review.pg.sql b/sql/quote_review.pg.sql index b638ac3..5f77c56 100644 --- a/sql/quote_review.pg.sql +++ b/sql/quote_review.pg.sql @@ -56,8 +56,8 @@ lq AS MATERIALIZED ( ,i.mpck pltq -- ,(pricing->'guidance'->'finalPrice'->>'Price')::numeric guidance -- ,pricing->'guidance'->'finalPrice'->>'Reason' reason - ,i.curstdus cstd_usd - ,i.futstdus fstd_usd + ,lq.curstdus cstd_usd + ,lq.futstdus fstd_usd ,CASE WHEN i.glec = '1NU' THEN --if more than 8/24 pallets, use floor @@ -124,4 +124,4 @@ lq AS MATERIALIZED ( ,price_usd numeric ) ON TRUE ) -SELECT * FROM hist --WHERE qid = 108596 +SELECT * FROM hist --WHERE qid = 108655