Change save_transaction to send whole batches instead of single transaction
Previously, savetransactions was called for each transaction line, this is changed to send whole batches instead.
Previously, savetransactions was called for each transaction line, this is changed to send whole batches instead.