On a project's page, Invoiced read $0.00 and the Invoices tab was empty for any invoice generated from tracked time and expenses. They only counted lines typed against the project by hand. Both now count everything billed for the project, including invoices you have already sent, so your existing totals appear without anything to redo.
When one invoice line covers more than one project, such as an expenses line that groups one category across a client's projects, each project counts its own share of that line rather than the whole of it. A written-off invoice still counts as invoiced. A deleted invoice or line does not.