Hi all
I've found a bug in GP. When you have both a customer and a vendor with the same ID, both with the same address IDs and both have internet information then duplicate records are displayed in the Customer Addresses SmartList (and possibly
The reason for this is the SQL query issued from SmartList is as follows:
SELECT TWO.dbo.RM00102.CUSTNMBR AS '1', TWO.dbo.RM00102.ADRSCODE AS '2' FROM TWO.dbo.RM00102 (nolock) LEFT OUTER JOIN TWO.dbo.RM00101 (nolock) ON TWO.dbo.RM00102.CUSTNMBR = TWO.dbo.RM00101.CUSTNMBR LEFT OUTER JOIN TWO.dbo.SY01200 (nolock) ON TWO.dbo.RM00102.CUSTNMBR = TWO.dbo.SY01200.Master_ID AND TWO.dbo.RM00102.ADRSCODE = TWO.dbo.SY01200.ADRSCODE WHERE ((UPPER(ISNULL(TWO.dbo.RM00102.ZIP,'')) = '12345')) ORDER BY '1' ASC, '2' ASC
The LEFT OUTER JOIN to dbo.SY01200 should of course have an extra condition of dbo.SY01200.Master_Type = 'CUS'
Thanks
Matt
*This post is locked for comments