I was mistaken about seeing the wrong total only on taxed items, it happens on untaxed products too. I switched to the new invoices.php, and that fixed the problem with the wrong total showing up. I'm working around the tax problem by adding sales tax to the income items after they're created, and so far that's working fine, but I'd really like to get a permanent fix.