From 3e127042410dd5310c1122e85796e26243d2fd3f Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 13 Jan 2021 00:16:38 -0500 Subject: [PATCH] join to accessories based on product structure --- db_schema/extract_for_customer_facing.pg.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_schema/extract_for_customer_facing.pg.sql b/db_schema/extract_for_customer_facing.pg.sql index 36612a8..4b00816 100644 --- a/db_schema/extract_for_customer_facing.pg.sql +++ b/db_schema/extract_for_customer_facing.pg.sql @@ -153,7 +153,7 @@ FROM --the item master could have multiple since its defined per plant but will take the first item for now AND up.pckg ? (i.uomp->>0) AND COALESCE(i.BRANDING,'') = up.branding - AND COALESCE(i.ACCS,'') = up.ACCS + AND COALESCE(i.ACCS_PS,'') = up.ACCS AND COALESCE(i.SUFFIX,'') = up.suffix AND APLNT <> 'I' )