If you have deleted a sales invoice in QuickBooks Online it can not be retrieved however you can view it in the audit log.If you go to the cog in the top right>audit log>click on the filter on the left hand side>put a tick in transactions>change show to deleted/voided transactions and select a date range.Once found you can view the transaction.