Joe, I'm not absolutely sure but I think it's when the money is received. If not it would be classified as deferred income which is allowed in some situations.
There could be an agreement on large settlements for partial payments in that case they could elect to classify some as deferred income and reverse that entry when the payment is received.
In our company we had some large contracts and would show a portion as deferred income based on a specific payment schedule.