Tax records don’t have to include the customer if it’s retail. If that was a requirement cash businesses would have massive problems, and the rule of keeping those records for seven years significantly predates our current model of credit for everything.
Beyond that, if I go to a restaurant they don’t have my name and address or any other information. Businesses need to keep records like “we bought x from y for $z,” and “we sold x to a for $b.”
And even further, the government could clarify that (if in some countries customer data was part of tax data) that the law was now to protect customer privacy and data.