PP Tool: get query for sales order