Andreas,
While there is no functionality to do so in a single stroke, you can edit each transaction that you want to assign to the second customer and right-click on the Line Items tab to select "Change Customer".
Note that you can only do this for transactions that are editable and you may need to reverse AR actions (e.g., payment posting) before continuing.