join to accessories based on product structure

This commit is contained in:
Paul Trowbridge 2021-01-13 00:16:38 -05:00
parent 89737cf358
commit 3e12704241

View File

@ -153,7 +153,7 @@ FROM
--the item master could have multiple since its defined per plant but will take the first item for now --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 up.pckg ? (i.uomp->>0)
AND COALESCE(i.BRANDING,'') = up.branding 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 COALESCE(i.SUFFIX,'') = up.suffix
AND APLNT <> 'I' AND APLNT <> 'I'
) )