Advances recorded as advances
A deposit is recorded against the customer and the document it relates to when it is taken, so money held against an undelivered service sits in the ledger rather than looking like ordinary takings.
The balance stays visible in receivables until the service is delivered and the final invoice settles it.