add transaction.commits and update date only if registrationdate is None