n. Why the Invoice is Showing 'Returned' and 'Deposited'
Returned status invoices will always show a green checkmark, as the payment was deposited and then returned from the bank. If an invoice is Returned status (and overdue) that means that the invoice has not been paid successfully, even though it was deposited at one point.
Returned status is only for direct debit payments, encompassing the error codes for NSFs and also many others. Returned status invoices are failed payments where the payment processor has paid out the funds to you but later taken them back from your merchant account balance or bank account in order to reverse the payout, since the payment failed in the late stages.
The Deposited checkmark on TUIO is valid for 'Returned' invoices, as the payment was paid out to you and deposited at one time, while the 'Returned' status is also valid since the payment later failed.
Bank account payments can fail in the late stages due to the following error codes/reasons: