Back when I was a teenager, all ammo purchases had to be logged in to a book at the gun store. I believe it was federal law at the time.
I don't recall exactly when it was stopped, but it used to be the law. That was in the 1970s.
Yup, I remember Pops having to buy my ammunition. 1968 GCA. Fully rescinded in 1986. We've been spoiled with that Freedom for 34years at least at the Federal level.