Incorporate query fix for contribution detail reports to filter by Batch + fixing the getBatches BAO to remove unneeded filtering on batch type and batch status. Now we only exclude batches that are still in Data Entry status.
CRM-13567 - Incorporate query fix for contribution detail reports to filter by Batch + fixing the getBatches BAO to remove unneeded filtering on batch type and batch status. Now we only exclude batches that are still in Data Entry status.

----------------------------------------
* CRM-13567: CiviContribute Detail report fails if you add batch data as a filter
  http://issues.civicrm.org/jira/browse/CRM-13567
Merge pull request #1827 from davecivicrm/CRM-13567

 	CRM-13567 - Incorporate query fix for contribution detail reports to … …  …filter by Batch + fixing the getBatches BAO to remove unneeded filtering on batch type and batch status. Now we only exclude batches that are still in Data Entry status.