delivered the opinion of the Court.
The evidence for the plaintiff (now appellee) tended to prove that under a verbal contract with the defendant, he was to cut, trim and set all the stonework on seventeen houses for the sum of $3225, which the defendant promised to pay in weekly instalments as the work progressed, and that the defendant wrongfully *286stopped him in his work and refused to allow him to proceed with the performance of his contract, although he was ready and willing and able to perform it ; that at the time the defendant stopped the work, the plaintiff had completed about two-thirds of it and had been paid $1211.50. The evidence for the defendant tended to prove that he agreed to pay the plaintiff every Saturday, as the work progressed, enough money to pay the wages of the plaintiff and his men, and all the expense of tool-sharpening; and the balance of the sum of $3225 when the work was completed ; and further, that after the commencement of the work the plaintiff agreed that if he got drunk and neglected his work for a day, or part of a day, he would give up the contract and defendant might discharge him ; that plaintiff having gotten drunk and neglected his work, the defendant discharged him ; that at the time of the discharge he had been paid more than the expenses and wages stipulated to be paid weekly. Most of this testimony seems to have been given by the defendant, and by Smith-, his foreman. The plaintiff offered evidence tending to prove that he had not been drunk and had not neglected his work, and that he had never agreed with the defendant that he would abandon the contract if he became intoxicated. Defendant then offered to corroborate his own testimony and that of Smith by proving by Hanes that he, the defendant, and Smith had made the same statements to him, Hanes, during the progress of the work, and before the plaintiff's discharge, as they had made at the trial in reference to the plaintiff's drunkenness and neglect of the work ; and that the defendant told Hanes the day before the plaintiff was discharged, that' the plaintiff had agreed that the contract should be at an end if he got drunk again. The Court refused to- admit in evidence either the statement made by the defendant, or the statement made by Smith, and the defendant *287excepted. The evidence offered in behalf of the defendant was assailed in two particulars; it was controverted that an agreement had been made by the plaintiff to terminate the contract if he got drunk and neglected the work; and secondly it was denied that he had gotten drunk and neglected the work. Under these circumstances we are obliged by the authorities to hold that Smith’s declarations were admissible to support his credibility. McAleer vs. Horsey, 35 Md., 441; Maitland vs. The Citizens National Bank of Baltimore, 40 Md., 540. Bloomer vs. State, 48 Md., 521. But the Act of 1814, chapter 385, prohibits the admission of the defendant’s declarations. A portion of the testimony tendered was competent and a portion incompetent. It was error to reject the whole. Carroll’s Lessee vs. The Granite Manufacturing Co., 11 Md., 400; Pettigrew vs. Barnum, et al., 11 Md., 434.
In considering the prayers offered at the trial, we cannot look to the pleadings in the case, inasmuch as the prayers make no reference to them. Leopard vs. Chesapeake and Ohio Canal Co., 1 Gill, 222, and many other cases, some of which are cited in Baltimore Building Association, No. 2 vs. Grant, 41 Md., 569. If the plaintiff agreed that the defendant might discharge him in case of drunkenness and neglect of his work, and he was discharged because guilty of these offences, he did not thereby forfeit what he had earned up to the time of discharge. He was still entitled to be paid for his work, and the jury ought to have been instructed that upon this hypothesis he was entitled to recover the value of his work according to the contract price. In the absence of good cause for discharge, he was entitled to recover the difference between the contract price for the whole work and the cost of performing it. In either event, the plaintiff would, of course, be charged with the money already paid him by the defendant on account of *288his work; this sum to be deducted from the value of the work in the one instance; and from the amount of the profits in the second instance. The plaintiff’s prayer as originally offered could not have been granted because it entirely disregarded the evidence on the subject of the discharge for drunkenness and neglect of duty. The Court’s modification, however, did not put the case to the jury as favorably for the plaintiff as he had a right to require. The defendant’s prayer was properly rejected, because it sought to forfeit the plaintiff’s right to be paid for the work done, and not paid for, previously to his discharge. We speak of the case merely as it appears from the evidence.. If a question should hereafter arise on the pleadings, they must be in proper form to present the questions which Ave have been considering.
(Decided 18th April, 1890.)For error in the first exception the judgment must be reversed.
Judgment reversed, and new trial awarded.