What an invoice does
An invoice documents work or goods provided and tells the client what they owe and when to pay.
What a receipt does
A receipt confirms that payment happened. It is usually sent after the client pays.
Use both when needed
For service work, send an invoice before payment and a receipt after payment if the client needs confirmation.