change the query based on current partner to get partner lines