Assuming the deposit is refundable
you can use make deposits, select the customer name and accounts receivable for the source account for the deposit and enter the amount
that will set a customer credit
In terms of an audit trail though, using an item that posts to the liability account for customer deposits on a sales receipt is better practice
then you just use that item on a final invoice with a negative qty of one and the amount