Update fiscal position or the partner on the invoice. This will automatically update the taxes and accounts.