I'm not sure who downvoted you. It is a good question. McDonald's and other consumer goods type companies are not sanctioned, so the company can sell its assets. For that matter they could continue to operate as normal in Russia if they choose.
I'm not sure they really could easily continue to operate as normal. Their business units in Russia get paid by consumers in rubles, but due to the financial sanctions, they can no longer convert rubles to US dollars [1]. From the point of view of their non-Russian shareholders, this effectively means all that money is inaccessible. This would result in complications in reporting the revenue on their income statement. Plausibly (I am not an expert), this would mean they can't even recognize the revenue at all. At minimum, it becomes an open question whether or not the revenue will ever benefit the corporation or if it will be 'trapped' perpetually.
You're right, currently you can't get your revenue outside unless you're down to use a scheme involving exchange for trades inside Russia, move them outside and turn back to money. I've diagonally read the article linked and it depicts everything correctly.
In Russian "to read diagonally" means "to skim" in English. Like, you don't read left to right, top to bottom, but straight from one corner to the other.
Not sanctions, but Russian regulation. From your link:
>The Bank of Russia more than doubled the benchmark interest rate to 20%, a 19-year high, on Feb. 28 and also imposed capital controls, including a ban on foreigners’ selling of securities. Nabiullina said decisions to suspend some regulatory requirements amounted to a capital boost for banks equivalent to 900 billion rubles ($8.7 billion). Putin banned all Russian residents from transferring foreign currency abroad, hardening capital controls.
Interest rate is already back to 14%[1]. Russian economy recovered super fast. Ruble is already stronger than before war (around 64 RUB for USD). Basically sanctions are a joke made for Biden to shout once before American public attention shifts to Amber Heard trial or some other spectacle of the day.
If you read your article you'll learn they are cutting the interest rate back because of sanctions (to mitigate the effects), and inflation is still soaring. 20% is not sustainable, analysts have seen this coming as Russia tries to avoid a recession, in fact the drop by 300 bps was larger than predicted.