If you've assigned the wrong ledger account or analysis type to a transaction, you can correct it in the Correct transactions area.
If the transaction doesn't update, follow our article when transactions haven't updated using Correct Transactions.