amrsreports: adding voided clause to the query.