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
Hi Leslie
Kind of though I couldn't replicate the duplicate when the Vendor ID was deleted
The duplicate records in the SmartList just show the customer's address twice, the vendor address does not show
The INET information itself doesn't matter as such but if there is a record in the SY01200 table for a vendor matching the customer (ID + address code) then the duplicate shows :-)
Matt
Hi Matt,
OK, I got some weird results. The INET information didn't seem to matter. I even deleted the 'matching' vendor and still had it duplicate whichever address was on the Primary. I could never get them to cross over. I never had both vendor and customer information show up. I made each of the addresses have the same zip code, but it was still true to whether it was a customer or vendor. They both listed the primary twice in the search, which I see as a bug. Is that what you were experiencing?
Kind regards,
Leslie
Hi Leslie
I missed out a salient point, I'm so sorry!
Use the Search button to restrict the SmartList, say on Zip code... SmartList then uses the custom SQL query rather than the zDP stored proc(s)
Matt
Hi Matt,
I could not reproduce this behavior. I just tried it using GP2015 and the correct records where shown in each object. I created a vendor and customer, each with the same ID and Address ID. I put something in the first INET field for each of them and everything displayed properly. I then put the identical information for each in their INET 1 field and it still displayed properly.
Can you reproduce the error and give me more details on what you entered?
Kind regards,
Leslie
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156