[EDITORS' NOTE: THIS PAGE CONTAINS HEADNOTES. HEADNOTES ARE NOT AN OFFICIAL PRODUCT OF THE COURT, THEREFORE THEY ARE NOT DISPLAYED.] *Page 39 This is an action to recover the sum of $10,992.50 for labor and material furnished by plaintiff in the erection of a set of gas generators for the defendant. Judgment was for plaintiff, and defendant appeals from the judgment and from an order denying its motion for a new trial. *Page 40
The matters presented as error are based upon the assumption that the action is on the contract under which the work was begun, but we do not think this is the only form of action stated in the complaint. It is alleged that the generators were erected at the request of defendant under a written contract requiring the work to be done within thirty days from date; that they were not completed within that time, but that plaintiff continued the work of constructing them after the expiration of the time with the knowledge and under the supervision of the defendant, and when they were completed, fifteen days after the time limit of the contract, defendant accepted them, took possession thereof, and has ever since used them for the purpose for which erected. These allegations, together with the further allegation of the reasonable value of the labor and material furnished contained in the complaint, state a cause of action in indebitatus assumpsit. When the generators were completed and delivered by the plaintiff, whether in time or not, whether in accordance with the contract or not, and the defendant accepted them, the law implied that the work and material furnished in their construction would be paid for by the defendant. The trial court properly instructed the jury upon this theory of plaintiff's cause of action. While there are also allegations in the complaint relating to the acts of defendant, upon which plaintiff relied in excuse for the delay in completing the generators within the agreed time, these do not detract from the statement of a cause of action on the common count. They were no doubt intended to support a recovery upon the theory that defendant had waived the time limit in the contract and was estopped to take advantage of the delay because due to defendant's own acts, but plaintiff's right of recovery was not limited to this cause of action.
There was no demurrer on the ground that these causes of action were improperly united, or that they were not separately stated, and no motion was made to strike out either as surplusage or redundant matter. There was a special demurrer to the complaint on the ground of uncertainty, which was overruled, but this ruling is not urged as error here. It was addressed to the complaint generally and was properly overruled. (Jones v. Iverson, 131 Cal. 104, [63 P. 135].) The answer of defendant denies all the allegations of the complaint, except that which alleges the execution of the *Page 41 contract, and sets up a counterclaim of damages for injury sustained by defendant because the work was not completed in the time specified in the contract. The right of plaintiff to recover the value of the generators is recognized in the pleading filed by defendant by crediting it upon the damages claimed.
All the issues presented in the complaint by the allegations relating to the excuses for delay and those setting forth the changes and modifications of the contract in connection therewith are raised by defendant's counterclaim and the denials which the statute interposes to the affirmative allegations therein contained. Twenty-seven special issues or interrogatories were submitted to the jury covering these matters and the injuries alleged to have been sustained by the defendant and the findings upon all were in favor of plaintiff, in whose favor a general verdict for $11,826.09 was also rendered.
The view of the complaint so taken renders it immaterial whether the evidence of the work which the plaintiff did for defendant was under the contract, or in modification of it. The defendant accepted the work and must pay for it. Evidence showing what work was done in the completion of the generators which defendant accepted was admissible. This renders it unnecessary to distinguish the authorities cited to support appellant's contention that there was a variance. It also disposes of the objection that evidence showing the reasonable value of the work done was improperly admitted, and the error predicated upon refusing to give instruction No. XV, requested by defendant, which is based upon the same theory of the action as the other objections mentioned.
There was, however, no objection to the introduction of the evidence which appellant complains of as an attempt to modify the original contract by parol. The references in the opening brief of appellant are to matters elicited upon the cross-examination of plaintiff's witness, Wm. Lacy, by defendant's counsel, and to the direct examination of Richard H. Lacy, and in neither instance was there objection, exception or motion to strike out. The same matter is testified to by Wm. Lacy elsewhere in the record without objection. If we were considering this matter upon the same theory as appellant, the variance would not be a ground for reversal. By its failure to call the trial court's attention to the matter by proper *Page 42 objection it was waived. (Cushing v. Pires, 124 Cal. 665, [57 P. 572].)
Instructions VIII, IX and X, requested by plaintiff, were properly given. They deal with the right of defendant to a judgment on its counterclaim upon the theory that if the changes in the plans and the delay in the completion of the generators were the acts of defendant, it cannot recover. These instructions correctly declare the law. Neither was the refusal of the trial court to give instruction VI, requested by defendant, error. The proposed instruction assumes that a provision in the contract for the adjustment of the contract price, according to whether or not the labor and material furnished in erecting the generators exceeded or fell below that necessary to construct certain other generators named in the contract, justified the court in saying as a matter of law that the changes made and the causes of delay occurring either before or after the expiration of the contract time, were presumed not to extend the time within which the contract was to be completed, unless there was an express stipulation to that effect.
Instruction XI, given at request of plaintiff, finds support in Adams v. Burbank, 103 Cal. 646, [37 P. 640], that in an action on a quantum meruit for work done under a special contract the price agreed upon in the contract is evidence of the value of material furnished and services rendered. Instructions XV and XXII correctly declare the rule of damages as stated in section 3300 of the Civil Code. Damages for the breach of an obligation arising from contract will be given only for such detriment to the aggrieved party as is proximately caused by the breach, or which, in the ordinary course of things, would be likely to result therefrom. This would not necessarily include injury caused by the overloading of its plant by defendant during the time of delay in waiting for the completion of the work done by plaintiff. It was not error to instruct the jury that the mere fact that the injury and the breach were contemporaneous or the former subsequent to the latter did not establish that the injury was the result of the breach.
The contention that the contract was void because not recorded as provided by section 1183 of the Code of Civil Procedure, could not be sustained as between the parties to the contract, if it were necessary to decide this question (Los *Page 43 Angeles Pressed Brick Co. v. Higgins, 8 Cal.App. 514, [97 P. 414, 420]), but as the plaintiff did not recover on the contract a decision of the question is not required upon this appeal. The general demurrer was properly overruled because a cause of action based upon a quantum meruit was properly pleaded.
The action before us comes within the rule so clearly laid down in Dermott v. Jones, 23 How. (U.S.) 220, by Justice Wayne: The general rule of law is that while a special contract remains open — that is, unperformed — the party whose part of it has not been done cannot sue in indebitatus assumpsit to recover compensation for what he has done until the whole is completed. But the exceptions from that rule are in cases in which something has been done under a special contract, but not in strict accordance with that contract. In such a case the party cannot recover the remuneration stipulated for in the contract because he has not done that which was to be the consideration of it. Still, if the other party has derived any benefit from the labor done, it would be unjust to allow him to retain that without paying anything. The law, therefore, implies a promise on his part to pay such remuneration as the benefit conferred is really worth; and, to recover it, an action in indebitatus assumpsit is maintainable. In such an action, the defendant may be allowed by way of counterclaim or setoff to recoup himself in damages for injuries or detriment sustained by him because of plaintiff's failure to comply with the obligations imposed upon him by the contract.
In this view of the action there is no reversible error in the record, and the judgment and order appealed from are affirmed.
Allen, P. J., and Shaw, J., concurred. *Page 44