Hi
You don't have to ""transfer"" the prepayment - it will just remain as a credit on the account, and you don't want to press ""prepay"" on the new order, since that will open a new batch or entry.
After the new order is shipped and invoiced, you can apply the credit on the account to pay that invoice. This is done in the 'Enter Payments' screen.