Added logic to allow for searches based on date range for accounting.