Answer
A credit customer buys goods/services and pays later, creating a receivable recorded in the sales ledger via an invoice. A cash customer pays at the point of sale, recorded directly in the cash book with no ledger account needed. Only credit sales appear in the sales day book and sales ledger.
Real-world example An account customer is invoiced and tracked in the sales ledger; a walk-in pays cash recorded in the cash book.