Petitioners are defendants in a lawsuit for recovery of legal fees. Plaintiff in that lawsuit is Carlene Stewart (real party in interest in this proceeding), who sued as assignee of Wareham Seaman, an attorney who had a contract of employment with petitioners. Petitioners were served with process in that suit but did not appear. On October 21, 1964, real party in interest requested entry of their default and presented to the clerk of the court a proposed default judgment in the principal amount of $64,110.42. The clerk entered the default and signed and entered the judgment as requested. On October 8, 1965, petitioners moved to set aside the default an,d the default judgment. Their motion was denied on October 20, 1965. On November 15, 1965, petitioners filed the present proceeding in mandate, seeking to nullify the default and default judgment.
Petitioners’ resort to mandate rests on the assumed ground that the order under attack is not appealable. There is considerable doubt as to the correctness of that assumption. Real party in interest does not oppose the assumption but agrees with it. The present petition was filed and an alternative writ of mandate issued less than a month after the trial court denied the motion to vacate. Had this court rejected the petition, a notice of appeal could have been filed forthwith. Such an appeal would have involved questions identical to those which have been fully debated in this proceeding. Under these circumstances it is appropriate to grant relief by mandate if it is otherwise warranted.
(Hagan
v.
Superior Court,
Two corporations, one of which is M. W. Brown, Inc., and one individual are the petitioners here. The answer to the petition alleges that the corporate powers and privileges of M. W. Brown, Inc., were suspended for nonpayment of corporate franchise taxes on October 1, 1964. (See Rev. & Tax. Code, § 23302.) This allegation of the answer is not controverted by petitioners and is thus admitted.
(Hunt
v.
Mayor & Council of the City of Riverside,
The complaint in the action below is in three counts. It recites that the defendants (petitioners herein) faced a federal *523 tax liability totaling approximately $1,000,000; that they then entered into a contract with Mr. Seaman as attorney. The first and second counts incorporate by reference the attorney’s contract of employment, the pertinent portion of which is quoted in the margin. 1 The first count seeks recovery on the theory that the attorney had fully performed his services when the clients discharged him; alleges that prior to the clients’ breach he had secured a proposal from the tax authorities which would have saved the clients $173,063.73; that, were it not for the breach, he could have saved them an additional $150,752.36, or a “potential savings” of $323,-816.09; that as a result of these savings plaintiff’s assignor “was entitled to a fee” the unpaid balance of which was $64,110.42, all alleged to be owing pursuant to the contingency agreement.
The second count of the complaint alleges the discharge and seeks recovery of the identical amount as the unpaid balance of the “fair and reasonable value” of the attorney’s services. The third count incorporates by reference all the allegations of the first count regarding the contract, its breach and the “potential savings” and then alleges that an account was stated for the amount in suit.
Petitioners first claim that the complaint “wholly” fails to state a claim for relief, since it fails to allege occurrence of the contingency which made the fee payable. The judgment is immune from this attack. Petitioners’ motion to vacate the judgment, made approximately 11 months after entry of default, is not based on Code of Civil Procedure section 473. The motion is a collateral attack upon a judgment alleged to be void on the face of the record. (See
Wells Fargo & Co.
v.
City & County of San Francisco,
The second ground on which mandate is sought constitutes an attack on the default judgment but not on the default. (See
Howard Greer etc. Originals
v.
Capritti,
The county clerk's action in entering the judgment was a nullity. The clerk’s authority under subdivision 1 of section 585 is limited to contracts where the proper amount appears in the contract as alleged in the complaint or follows therefrom by mathematical computation.
(Landwehr
v.
Gillette,
The first count of the complaint attempts but fails to show occurrence of the contingency calling for payment of the attorney’s fee at the contract rate. The contract was a contingent one, calling for a fee (other than the hourly fee) of a percentage of the clients’ tax savings “as finally determined.” An attorney employed on a contingent fee basis who is wrongfully discharged by his client may recover the full
*525
contract amount under the same contingency as if he had completed the service; if he elects to sue for damages without establishing the contingency, he is limited to the reasonable value of his actual services.
(Moore
v.
Fellner,
The third count is premised on the theory of an account stated. In one case, where the complaint contained alternative common counts, one for an account stated, the court sustained the clerk’s entry of a default judgment on the account stated.
(Fallon & Co.
v.
United States Overseas Airlines, Inc.,
The petition for mandate alleges that petitioners did not know of the default judgment “until after the time to appeal therefrom had expired. ’ ’ The answer of real party in interest denies this allegation; charges that the then attorney for petitioner knew of the default judgment the day after its
*526
entry; alleges that real party in interest thereafter spent money on collection attempts; urges laches. At the time of the motion in the trial court and during the preparation of the parties’ arguments in this proceeding, California case law indicated that a judgment debtor filing a nonstatutory motion to vacate a judgment would be precluded from relief by laches.
(Hallett
v.
Slaughter,
Invalidity of the judgment entered by the clerk does not affect the default which preceded it. Where the default judgment is only voidable, a motion to set it aside without also vacating the default will be denied as an idle act, since the plaintiff can immediately secure a judgment of like effect.
(Howard Greer etc. Originals
v.
Capritti, supra,
35 Cal.2d at pp. 888-889.) Here the judgment is not voidable but void on the face of the record. The ground of invalidity (unauthorized entry by the clerk) supplies no basis whatever for attacking the default. When the judgment is set aside, real party in interest cannot secure a judgment of like effect, but must apply to the court for a judgment under subdivision 2, Code of Civil Procedure section 585, in the amount justified by the complaint, that is, for the reasonable value of services actually rendered. Petitioners’ default admits that something is due but does not admit that the amount prayed for is the proper amount.
(Lynch
v.
Bencini, supra,
The petition is dismissed as to petitioner M. W. Brown, Inc. *527 Let a peremptory writ of mandate issue, directing the respondent court to set aside so much of its order as denied the remaining petitioners’ motion to vacate the default judgment; permitting the remaining petitioners to pursue that motion and in support thereof to demonstrate whether or not they exercised diligence; and entering such further order or orders as are not inconsistent with this opinion.
Pierce, P. J., and Regan, J., concurred.
Notes
“ Attorneys shall be paid $30.00 an hour for all of their time spent in performing the services hereinabove described. t c
“Attorneys shall receive, as additional compensation, twenty percent (20%) of the differences for the years 1954 to 1959, inclusive, between the taxes, penalties and interest (before application of net operating loss carrybacks for calendar years ending after December 31, 1959) as finally determined for United States and California income tax and the liabilities for such taxes, penalties and interest proposed under the said petition and revenue agent’s report for United States Income Tax and as similarly applied for California Income Tax, computed as of the date of such final determination. Such additional compensation shall be reduced by the fees at $30.00 an hour paid to Attorneys which have been allocated to Clients for Attorneys’ services for all fiscal years ending prior to calendar year 1960,”
