This is a very common scenario where transaction posted wrongly to Undeposited Funds account and the Cash Sale shows Status: Deposited
Since the transaction was posted to Undeposited Funds account and user is unable to change the account.
here is a way this issue can be fixed.
Steps to resolve:
1. Transactions > Bank > Make Deposits > List > Edit the deposit.
2. Uncheck the cash sale.
3. Click Save.
The cash sale now displays Not Deposited status and the account can be changed in Edit mode.