If the bank is configured to track cash in one fund, the account defined on the bank record will be the credit account on the checks distribution.
In Accounts Receivable the bank's one cash account will be the debit account on the deposit.
In contrast, if the system is configured to track cash in multiple funds, the system will use the cash account that is in the same fund as the payable or expense account to which the invoice being paid was coded.
In Accounts Receivable, the cash account used on the Deposit record is based on the fund of the account selected for the payment's credit account. The distribution of the Deposit is not populated until a payment is added to the deposit record.