diff --git a/new_targets/scripts/matrix_guidance.pg.sql b/new_targets/scripts/matrix_guidance.pg.sql index 176bbfd..8f999bf 100644 --- a/new_targets/scripts/matrix_guidance.pg.sql +++ b/new_targets/scripts/matrix_guidance.pg.sql @@ -179,7 +179,7 @@ BEGIN FROM pricequote.lastprice lp WHERE lp.customer = q.cust - AND lp.partgroup = SUBSTRING(q.part, 1, 8); + AND lp.partgroup = q.partgroup; ----------------------------------------------------------------------- -- Step 5: Resolve best list price and insert it with list code