From d13519c07c65f44267f4bb0bad6f0ced41a6c387 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 14 Apr 2021 15:26:36 +0000 Subject: [PATCH] trim part number coming from CMS listing in spreadsheet with whitespace at end --- route_sql/new_basket.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 89c8553..a29819f 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -246,7 +246,7 @@ SELECT ,mxm.r_currency ,jr.bill_cust_descr ,jr.ship_cust_descr - ,(regexp_match(jr.part_descr,'(.*?)(?= - |$)'))[1] part + ,rtrim((regexp_match(jr.part_descr,'(.*?)(?= - |$)'))[1]) part ,jr.part_descr ,substring(jr.part_descr,1,8) part_group ,mxm.qty*mxm.momix*jr.mix units