Majority
Headnote
1. Pleading—Complaint—Condition.The complaint was dismissed on the ground that it contained no averment that the architect unreasonably withheld his certificate of the completion of the building. The complaint ivas defective in this respect. By the true construction of the building contract the procuring by the plaintiff of the certificate of the architect that the building had been completed, was a condition precedent to his right to recover under the contract the last installment of $6,158, for which this action is brought. To meet this condition and to show a right of action it should have been averred in the complaint, either generally or specially, that the conditions precedent had been performed, or if the plaintiff relied upon a matter excusing him from procuring the certificate, the facts should have been stated. Thomas v. Fleury, 26 N. Y., 26 ; Bowery Nat. Bank v. Mayor, etc., 63 id., 336 ; Doll v. Noble, 116 id., 233 ; 26 St. Rep., 629 ; Oakley v. Morton, 11 N. Y., 25 . The complaint neither averred that the certificate had been procured nor that it was unreasonably withheld. A copy of the contract containing the provision as to the architect’s certificate was annexed to the complaint. The action was upon the contract and the complainant alleged performance by the plaintiff and that the building had been substantially completed according to its terms.
A defendant is authorized to raise the objection that the complaint does not state facts sufficient to constitute a cause of action on the trial, although the objection has not been taken either by demurrer or answer. Code, § 499. At the conclusion of the plaintiff’s evidence the defendant’s counsel moved to dismiss the complaint on the ground that under the contract the certificate of the architect was a condition precedent. The counsel for the plaintiff asked to go to the jury upon the question of unreasonable refusal of the architect to give the certificate. The court in answer said that" there is no such issue, and referred to the fact that there was no allegation upon the subject in the complaint This was the first reference on the trial to any defect in the pleading. The complaint set out the contract, its performance by the plaintiff, the amount unpaid, and demanded judgment therefor. The answer denied the complaint and set up as a counterclaim in substance that the plaintiff had not completed the building, but after he had commenced the work he abandoned it before completion, and that the defendant, after giving duo notice to the plaintiff, proceeded under the fourth section of the contract to complete the building according to the specifications, and did complete it, at a cost of $2,904.58, and also that the defendant had sustained damages by reason of delay, in a sum stated, and these several sums he demanded should be allowed as a set-off or counterclaim against the demand of the plaintiff.
On the trial the plaintiff proved the contract and proceeded to give evidence in detail of what he had done under it. It was claimed by the defendant that the plaintiff had not complied with the contract in several respects, but the principal ground of objection was that the plaintiff had not complied with the contract in respect to the floor of the basement. The plaintiff insisted that he had complied with the contract in that respect, and proof was given as to a demand upon the architect for a certificate, which was refused.
It is claimed that no question having been raised until the conclusion of the plaintiff’s evidence as to the sufficiency of the complaint upon the point of the architect’s certificate, and the trial having proceeded upon the issue whether the work had beenactu-, ally completed, without objection, it was then too late to raise the question of the sufficiency of the complaint in that respect. The court might very well have permitted an amendment, but no application to amend was made, and we think it was not too late to raise the objection at the conclusion of the plaintiff’s case. At least it was in the discretion of the court to entertain it at that stage of the trial.
But we think that the court erred in dismissing the complaint for a different reason. The defendant’s counsel on his cross-ex-
The judgment should be reversed and a new trial granted.
All concur.
Judgment reversed.