No, they have to report the location of the transaction, for which there are legal rules, which specify that the location of the transaction for sales tax is “where the merchandise is physically located at the time the sale takes place.” [0]
Apple chose, instead of following the law, to report the transactions as taking place in Cupertino irrespective of where the actual merchandise sold in the particular transaction was located. And received a kickback from Cupertino for doing it.
The reason this is in the news is because California’s sales tax authority conducted an audit of Apple’s sales taxes, and notified Cupertino that they are about to lose a whole lot of ongoing revenue and must pay a bunch back because of the illegal allocation.