How to create a new or add to a transaction with a Template