This was an action by the plaintiff in error against the defendant in error in the district court of Keith county to recover the price of certain hose, hose carts, reels, ladders, and other apparatus of like character in common use by town and village fire companies. It is alleged that said property was sold and delivered to the defendant, at its request,on the 29th day of April, 1887, for the agreed price of $569, and for which amount judgment was demanded. An answer was interposed, in which it was alleged, in substance, that although the board of trustees of the defendant village entered into an agreement to purchase from the plaintiff the property mentioned in the petition and for the price therein stated, said agreement is void, for the reason that no appropriation had previously been made for the purchase of said property, or that was available for said purpose; and that during the municipal years of 1885 and,18.86;and-*7781886 and 1887 said village had made no appropriation, by-ordinance, resolution, or otherwise, for the defraying of any part of the expenses thereof, and that said defendant never received or appropriated said property or otherwise ratified said agreement. The reply was, in substance, a general denial of the allegations of the answer. The provision of statute relied upon by the defendant is section 89 of chapter 14, Compiled Statutes, entitled “Cities of the Second Class and Villages,” which reads as follows: “No contract shall be hereafter made by the city council or board of trustees, or any committee or member thereof; and no expense shall be incurred by any of the officers or departments of the corporation, whether the object of the expenditure shall have been ordered by the city council or board of trustees or not, unless an appropriation shall have been previously made concerning such expense, except as herein otherwise expressly provided.” The evidence introduced at the trial fully sustains the allegations of the answer as to the failure of the village to ipake an appropriation available for the payment of the plaintiff’s claim, whereupon the latter offered to prove by witnesses present that the village had received the property in controversy, paying the freight thereon, and had used it continuously since that time. That offer was rejected on the objection of the defendant village, and a verdict of no cause of action returned under the direction of the court. Judgment was subsequently entered upon the verdict, whereupon the cause was removed to this court by the petition in error of the plaintiff company.
There is practically but one question for consideration, and which is fairly presented by the offer and ruling above named. In this connection it should be remarked that no claim is made that this case is within any of the exceptions contemplated by the statute quoted. The cases bearing upon the question of the power of municipal corporations to ratify their unauthorized contracts are confusing *779and apparently irreconcilable. It would subserve no useful purpose to examine them at length in this connection or to attempt a statement of the grounds upon which they rest. It is sufficient that there is one principle which seems to run through them all, viz.: If a contract is invalid when made, because in violation of some mandatory requirement of statute, it will be deemed ultra vires, and can be ratified only upon the conditions essential to a valid agreement in the first instance; but where the formalities prescribed or conditions imposed are not intended as a restriction upon the corporate power, a binding ratification may be made in a different mode. (Town of Durango v. Pennington, 8 Col., 257; McCracken v. City of San Francisco, 16 Cal., 623; San Diego Water Co. v. City of San Diego, 59 Cal., 522; Cory v. Freeholders of Somerset, 44 N. J. Law, 445; Keeny v. Jersey City, 47 N. J. Law, 449; Newman v. City of Emporia, 32 Kan., 456; McBrian v. City of Grand Rapids, 56 Mich., 103; McDonald v. Mayor of City of New York, 68 N. Y., 23; Smith v. City of Newburgh, 77 N. Y., 130; Agawam Nat. Bank v. South Hadley, 128 Mass., 509; Dill, Municipal Corporations [4th ed.], 457.) It is plain that the statute under consideration is mandatory and an express limitation upon the powers of cities and villages of the class to which it applies. Indeed, stronger language could not have been used, and its meaning is too apparent for construction. It is the recognized doctrine that whoever contracts with a municipality must, at his peril, take notice of the powers conferred by its charter and whether the proposed indebtedness is in excess of the limitations imposed thereby. (Hodges v. City of Buffalo, 2 Denio [N. Y.], 110; Lowell Five Cents Savings Bank v. Winchester, 8 Allen [Mass.], 109; People v. May, 9 Col., 80; Law v. People, 87 Ill., 385; French v. City of Burlington, 42 Ia., 614.) As said in the case last named, “any other rule leaves the taxpayer at the mercy of the officers of the city and contractor, and would render the constitutional provision nugatory. *780Such a result cannot be contemplated or allowed to prevail.” And if a recovery is sanctioned upon a contract like this, on the ground that it has been subsequently ratified) surely legislative restrictions upon corporate powers is in vain. It would then be within the power of willing or corrupt officers to accomplish by indirection that which is prohibited in the most explicit terms of the statute or charter. There may be cases in which considerations of equity and good faith will impose upon a municipal corporation the duty of returning property, or its equivalent, where an action would not lie upon contract, express or implied. That question is, however, not presented by the record of this case and is not decided.
2. The defendant was permitted, over the objection of the plaintiff, to prove by a witness called for that purpose that he, witness, had examined the minutes of the proceedings of the village board for the years beginning in May, 1886, and ending May, 1887, and that said minutes contained no record of any appropriation for the purchase of the apparatus in controversy, or for defraying any of the expenses of the village during said period. Exception was taken to that ruling, which is also assigned as error. The objection urged to the testimony of the witness is that it is secondary only. A sufficient answer to that objection is that the record referred to by the witness had previously been offered in evidence by the plaintiff and received without objection. We must presume that the book being in evidence, the court and jury were fully advised with respect to its contents, as far at least as material to the question at issue. But it was not secondary evidence. That contention is based upon an entire misconception of the rule, which excludes only that evidence which of itself indicates the existence of more original sources of information. (1 Greenleaf, Evidence, 82.) Any person who has examined offices or records, and shows a sufficient knowledge of their contents, will be permitted to testify that a par*781ticular fact does not appear of record therein. (Cross v. Pinckneyville Mill Co., 17 Ill., 54.) There is no error in the record and the judgment of the district court is
Affirmed.