I can see a sales invoice in the History but not in the Customer account or the Sales Invoices database

Sorry, I thought history view