Upon motion for rehearing the opinion heretofore filed in this appeal is hereby withdrawn and the one to follow substituted therefor.
This proceeding challenged the constitutionality of Chapter 128, Laws of 1945, and seeks to restrain the transfer of funds collected pursuant to its provisions.
Appellant is engaged in the business of furnishing its cars for hire to various railroad common carriers over their lines throughout New Mexico and other states. Its cars are used at a compensation fixed by the Interstate Commerce Commission. Under the provisions of the Act there is withheld by the carriers 31/¿% ($5,662.73) of the gross earnings due appellant for the Use of its cars for the calendar year 1945. As required by the Act, this amount was paid on appellant’s account to appellee, State Tax Commission.
Upon motion for summary judgment the trial court found there was no genuine issue of material fact to be determined; concluded as a matter of law that judgment should go for appellee on the merits, and dismissed the complaint.
At the trial of this case below it was urged as a defense, although not ruled upon by the trial judge, that the plaintiff had not exhausted its statutory remedies before the State Tax Commission before seeking the aid of equity. Very likely one reason the trial court did not rule upon the merits of this defense is due to the fact that it determined the cause by sustaining defendant’s motion for summary judgment on the theory that there was no genuine controversy as to any material fact. In Associated Petroleum Transport, Ltd., et al. v. Shepard, 53 N.M. 52, 201 P.2d 772, we based our opinion on a holding that the plaintiff must exhaust its statutory remedies before State Tax Commission before filing suit in equity to enjoin collection of the tax here involved.
When our opinion in this case, just withdrawn by a Per Curiam order, was agreed upon and filed, the decision in Associated Petroleum Transport, Ltd., et al. *273v. Shepard, supra, had not been rendered. If it had, it would have proved decisive of the appeal in this case since the plaintiff herein did not exhaust its statutory remedies before the State Tax Commission before filing the suit out of which this appeal arose. It could only prolong the litigation, at an added expense to the parties, to send it back for a retrial since ultimate disposition in defendant’s favor on any appeal would have to be made on the authority of Associated Petroleum Transport, Ltd., et al. v. Shepard, supra. The plaintiff here, as there, did not exhaust its statutory remedies before seeking the aid of equity. Accordingly, judgment of the trial court, although resting upon another ground, is correct and should be affirmed, and it is so ordered.
BRICE, C. J., and LUJAN, SADLER, and McGHEE, JJ., concur.