diff --git a/sql/livequotes.pg.sql b/sql/livequotes.pg.sql index 554d9bb..06b06eb 100644 --- a/sql/livequotes.pg.sql +++ b/sql/livequotes.pg.sql @@ -12,7 +12,7 @@ lq AS MATERIALIZED ( SELECT lq.* ,pricing->'product'->>'mold' part_group - ,pricing->'customer'->>'chan' qchan + ,substring(pricing->'customer'->>'chan',1,1) qchan ,pricing->'customer'->>'cust' qcust ,pricing->'product'->>'itemrel' item_fit ,(pricing->'product'->>'pltq')::numeric pltq