That is only true as long as they ACCEPT CASH to begin with.
If their policy is check, money order, or credit card only, they do not have to accept cash.
The only legal concept I know of concerning cash is that if you offer to pay PART of a debt, instead of the FULL amount, they cannot REFUSE to take your payment (in whatever form that is).