Earned, collected, restricted and spendable are four different numbers. Deposits are a liability held for someone else — never income, never operating cash.
The rent for Unit A was delivered by the payment provider twice (the same event, replayed). Replaying it below shows the reconciliation answer: the second delivery is acknowledged and ignored, with its own receipt — the balance does not move.
A mistaken payment is never quietly edited: it is reversed by a new signed journal and re-applied, with every line preserved and the explanation visible to authorized viewers.