Computer checks, Bank drafts, Manual checks, and EFT checks all get their distribution from the Invoice's credit account (Accounts Payable Summary) and the bank's Cash Account.  If the distribution needs to be changed, void and purge the check and edit the Invoice distribution, according to its current status.