updates the batch and batch spec to handle the discovery of closed batches and begin to calculate how much each charity is owed from the batch