Refactored the batch process to now do them by batch type (ach & credit card).
This is because Sage for some reason sometimes has the same transactionid for a credit card and an ach transaction.
This is bad because we rely on their transactionid to be unique across transaction types.