The relator is the assignee of an account of $8.75 for labor in the stables of the waterworks department of Kansas City, Missouri performed by one Dock Wilson. The defendant is the. auditor of Kansas City and refused to give to relator, as such assignee, a city warrant for said sum. The relator thereupon instituted this proceeding by mandamus to compel the delivery of the warrant. The trial court granted the writ and the city appealed. The refusal of the city auditor is based upon the following ordinance of the city, claimed to prohibit an assignment of wages or salaries, to-wit:
“Section 1. No person shall combine his claim against Kansas City for salary or for any other demand, with that of another .or others, thereby procuring one warrant for both or all of said claims instead of two or more warrants, and no warrant shall be issued by the city auditor or countersigned by the comptroller or paid by the city treasurer, to any person other than the one who has actually done the wotk, performed the services, supplied the material, furnished the supplies, or has complied with a contract out of which his claim arose.
“Section 2. The city auditor shall allow no person to receipt the auditor’s books for warrants issued other than the person actually doing the work, performing the services, supplying the materials, or who has' *285complied with the terms of a contract existing between him and Kansas City; provided, however, that in the event of non-residents desiring to receipt for warrants on said auditor’s book, they may do so by resident agent or attorney duly authorized in writing; provided, further, that where such non-resident has no resident agent the city comptroller shall forward to him his warrant.
‘ ‘ Section 3. Any person failing, neglecting or refusing to comply with any of the provisions or requirements of this ordinance shall be fined by the police judge not less than five dollars nor more than five hundred dollars and any officer or employee of the city, who shall sell or assign his unearned salary, unearned wages, or earnings, shall thereby be deemed to have committed an act which is hereby declared to be sufficient cause for his removal.”
The ordinance is not well drawn. The first section prohibits the issuing or payment of a warrant to any other person than the one who performed the service for which payment is asked. The second section prohibits any other person than the one performing the service from receipting for a warrant. And finally, the third section makes it unlawful for any officer or employee to sell or assign his unearned salary or wages. It would have been better if the first section had, in terms, forbid or made unlawful, an assignment of a claim, earned or unearned, as the city counsel might believe the city’s interest to demand. But the relator puts its right to the warrant on the ground that the wages were wholly earned when assigned to it, and attacks the ordinance on the theory that in so far as it seeks to prevent the assignment of wages which were wholly earned at time of assigmnent, it is void.
The defendant seems to seek to uphold the ordinance as a valid preventive of the assignment, whether the wages be earned or unearned, though he contends they were not wholly earned in this case. Relator’s po*286sition discloses that if the .city had the power to* declare illegal an, assignment of wages wholly earned, no contention would he made over the right to prevent an assignment of wages which were unearned. So, therefore, the important consideration is as to the power of the city, by ordinance, to make illegal'the assignment of wages which have been earned.
1. There can be no doubt that any valid provision of an ordinance in relation to the employment of city employees enters into the contract of employment as effectually as if written in the contract. This is so held in all instances where the law is one enacted by the Legislature or the Congress; whether the law be local or general. State ex rel. Groodnow v. Police Commissioners, 71 S. W. 221. In that case it was said “that the defendants hold their offices by virtue of the Act of 1874, and amendments thereto*, and not by force of the city charter, and that the same is true of the relator. It also follows that when relator was appointed a member of the police force* by virtue of the act, he* accepted that appointment subject to all the terms and provisions* of that act as fully as if those terms had been specified in his commission.” And it is so held as applicable to the valid enactment of a municipal council. St. Charles v. Hackman, 133 Mo. 634, 642.
2. It therefore comes to this question: Is it a valid contractual provision to insert in a contract with’ a municipality that a claim for the wages arising thereunder shall not be assigned? We* think that it undoubtedly is. City of Omaha v. Standard Oil Co., 55 Neb. 337; Burck v. Taylor, 152 U. S. 634.
' While the right to assign a matured claim may be a fundamental right existing in the owner of the* claim, as contended by relator, it does not follow that he may. not curtail such right by contract. And so* it is said: “A contract to pay money may doubtless be assigned by the person to whom the money is payable, if there is nothing in the terms of the contract which manifests the inten*287tion of the parties to it that it shall not he assignable” (italics onrs). Delaware Co. v. Diebold Safe Co., 133 U. S. 473, 478. “At the present day, .no doubt, an agreement to pay money or to deliver goods may be assigned by the person to whom the money is to be paid or the goods are to be delivered, if there is nothing in the terms of the contract, whether requiring something to be afterwards done, or by some other stipulation, which manifests the intention of the parties that it shall not be assignable.” Arkansas Smelting Co. v. Belden Mining Co., 127 U. S. 379, 387.
A right which, for a consideration, is contracted away is not any longer a right to be asserted by the contractor. The agreement in this case was that the city would pay to Wilson a stipulated sum per day, if he would do certain work and surrender his right of assignment of his claim for such work to a third party, Wilson had as much legal capacity to agree to forego his ordinary right of assignment as he had to agree to perform the labor itself.
3. It is claimed that while these views may be correct, they are founded on the assumption that the ordinance' which we have inserted in the contract between Wilson and the city as a part of it, is valid. But relator claims that it is invalid, as being beyond the power of the city, and therefore it could not become an effective part of the contract. We must also rule this .point against relator.
. A city with the comprehensive charter possessed by Kansas City, and usually by all municipalities in this country, has a dual capacity, one as a public corporation exercising powers of government within the terms of its charter, and the other more in the nature of a private capacity whereby it makes contracts (also within the terms of its charter) for its own betterment, as individuals, may. The distinction between the two capacities was fully considered and set forth in Bullmaster v. St. *288Joseph, 70 Mo. App. 60, and again in Boothe v. Fulton, 85 Mo. App. 16.
The ordinance in controversy was a valid exercise of the city’s authority in the latter capacity. It had a right to provide that its employees should not assign their claims so as to bring upon it the hazard of knowing who the proper claimant was. To prevent possible frauds, inconvenience of account, and the like; as yell as to pút a stop to the notorious practice, becoming an evil in municipal employment of selling claims at ruinous discount, and thus impairing the efficiency of the service of its employees. The ordinance is in harmony with other well-recognized rules applicable to municipalities. Thus, a city is not liable to garnishment for the wages of its employees, as would be an individual or other corporation. A city “should not be compelled to stand at the bar of all courts in the State and participate in the judicial controversies carried on between debtors and creditors. Whilst these contests, would be going on, the public interests would suffer, by abstracting from their corporate duties the time and, attention of the officers and occupying them in contests. about which the corporation had no interest. And, however desirable it may be to creditors to enforce against the officers of the corporation their just demands, by the means resorted to in this case, yet we think that public policy forbids the imposition of such a liability upon the corporation.” Hawthorn v. St. Louis, 11 Mo. 60.
The right, as well as the propriety and validity of such statutes, has the sanction of the Supreme Court of the United States. It is declared by the Federal statutes (section 3477): “All transfers and assignments made of any claim upon the United States or any part or share thereof or interest therein, whether absolute or conditional and whatever may be the consideration therefor and all powers of attorney or orders or other authority for receiving payment of such claim or any part thereof or share thereof, shall he absolutely null *289and void, unless the same shall be freely made and executed in the presence of at least two attesting witnesses after the allowance of the claim and the ascertainment of the amount due and the issuing of a warrant for the payment thereof.”
Under this statute it was held that every claimant against the Government was incapacitated from creating any interest in the claim in any other person than himself. Spofford v. Kirk, 97 U. S. 407; United States v. Gillis, 95 U. S. 407; Goodman v. Niblack, 102 U. S. 556; Hobbs v. McLean, 117 U. S. 567. In the latter case it was said, the statutes were enactéd “for the protection of the Government. Goodman v. Niblack, 102 U. S. 556. They are passed in order that the Government might not be harassed by multiplying the number of persons with whom it had to deal and might always know with whom it was dealing until the contract was completed and a settlement made. . . . The Government said, so far as we are concerned you and you only will be recognized in the execution of the contract and in the payment of the consideration.”
4. While it is not a question in this case, yet in view of the general terms we have used, it may be proper to remark that cases might arise which, falling within the literal terms of the ordinance, would fall without its meaning. Thus, an administrator, or a general assignee under State laws, or in bankruptcy, might be held not within the intent of the ordinance where it provides that no one other than he who actually performed the work shall receive a warrant, or payment thereof.
5. What we have written answers the argument advanced by relator. He cites, among other authorities, State v. Williamson, 118 Mo. 146, and Wood v. Kansas City, 162 Mo. 303; especial reliance being placed on the latter ease. But, in our view, it has no application whatever. The decision in that case is that the city *290has no power to take from one of its officers the statutory fees he earns as a notary public. The former decides that an unearned future salary can not be assigned, the court remarking, in the course of the opinion, that it was the policy of the law, adopted for the efficiency of public service, that an officer should receive the money provided therefor. In Bliss v. Lawrence, 58 N. Y. 442, a case commended by Judge Burgess in State v. Williamson, it is said of this doctrine: “The substance of it all is, the necessity of maintaining the efficiency of the public service by seeing to it that public salaries really go to those who perform the public service. To this extent, we think, the public policy of every country must go to secure the end in view.” This language and that of Judge Burgess in State v. Williamson, is broad enough to' fairly sustain an interpretation which would 'prevent the assignment of a salary already earned. But conceding such salary may be assigned, those cases certainly fall far short of saying anything against the right of a municipality to forbid any interference with the earnings of a city employee or official, until after he had obtained his warrant and the money thereon has been paid to him. On the contrary, the language of those cases to which we have called attention, lends support, not only to the right to forbid it, but to the propriety of so doing.
The judgment is reversed and the writ quashed.
All concur.