Assigning financial entities to transactions