I checked the instructions as i do not have access to this part. It seem this is a querry. We had issues with querries in the past as not all codes from orders would appear in them. They never found the reason why that is happening.
however i think the main issue is that the informaiton here is not connected and is separatelly provided for supply and for sales. So i doubt it can be connected in this querry.