Is it possible to cancel invoices after creating a receipt due to user error? How should this be handled?

Yes, it is possible. Follow the steps outlined below to handle this.

  1. Cancel the receipt by changing Receipt status from Realized (or) Received -> Reversed -> Cancelled.
  2. Cancel the Invoice by changing the status from Approved -> Reversed -> Cancelled