delivered the opinion of the Court:
On the 12th of June, 1837, Aldrich, the plaintiff in error, conveyed to Sharp, the defendant in error, by deed of mortgage, certain real estate situate in Adams county. The mortgage is conditioned for the payment of the sum of $450, on the 12th of December, 1837, with interest from the date of the mortgage, at the rate of twelve per centum per annum. In November, 1839, Sharp filed his bill in chancery in the Adams Circuit Court, against Aid-rich, to foreclose the mortgage. At the April term, 1840, the bill was taken pro confesso against Aldrich, and the Court thereupon decreed, that Aldrich, on or before the 10th day of September, 1840, should pay to Sharp the sum of $450, the principal of the mortgage, with interest at the rate of twelve per centum per annum, from the date of the mortgage, until the payment df the same should be made, deducting therefrom the sum of $52.84; and in default of such payment, that Aldrich should surrender up to Sharp the evidences of the title, and that the mortgaged premises be sold at public auction, for cash, and conveyed to the purchaser, by a commissioner named in the decree. At the January term, 1841, the commissioner reported, that, in default of payment, he had sold the mortgaged premises, as required by the decree j that Sharp, being the highest bidder, became the purchaser thereof, for the sum of $686, to whom thb commissioner had made a conveyance of the land. The Court approved of the sale and conveyance, and decreed that a writ of habere facias possessionem issue, directed to the sheriff of Adams county, commanding him to deliver to Sharp immediate possession of the premises sold under the decree.
To reverse these decrees, Aldrich prosecutes a writ of error to this Court, and presents several assignments of error, two only of which will be considered :
First. It is contended, that the decree of foreclosure is erroneous, because the amount due on the mortgage is not ascertained by the decree, and because the decree directs the payment of twelve per centum per annum interest, from the rendition of the decree. We are of the opinion, the decree, in both these respects, is erroneous. It was the duty of the Court to ascertain the amount of principal and interest due on the mortgage, at the time the decree was made, either by a reference to the master, or by computation by the Court, and to direct the payment of the amount thus ascer- ■ tained, with legal interest thereon. This has not been done, and, besides, the decree is so uncertain that the 'amount due on the mortgage cannot be determined from it. It directs the payment of $450, with interest at the rate of twelve per centum per annum from the date of the mortgage, deducting $52.84. Whether the last sum is to be credited to the principal, or to the interest, does not appear, nor does it appear when the credit was to be given. If to be credited as part payment of the principal, instead of the interest, the amount due at the entering of the decree, would be materially lessened. This Court decided, in the case of Mason et al. v. Eakle, (1) that where a judgment is obtained on a contract, the contract is at an end, being merged in the judgment, and the judgment is controlled, not by the contract, but by the statute, which gives interest only at the rate of six per centum per annum. We see no reason why the rule should not be applicable to decrees in chancery for the foreclosure of mortgages. The object of the suit at law is to determine the amount due on the contract, that the creditor may enforce its collection out of the property of the debtor. The suit in chancery is instituted to ascertain the amount due from the mortgagor, and to coerce its payment by a sale of the property pledged.
Second. It is contended, that the subsequent decree is erroneous, in awarding the writ of habere facias possessionem. It is a well established principle, that when a court of chancery obtains jurisdiction of the subject matter of a suit, it .will retain the jurisdiction, to the end that complete justice maybe done between the parties. It has the power to decree a sale of the mortgaged premises, and thereby to pass the title to the purchaser, and will put him in possession, instead of driving him to his action of ejectment. It would be but partial justice to adjudicate upon the rights of the parties, and vest the title in the purchaser, without affording a remedy to carry the adjudication into full effect. The court, having the power to dispose of the title, has the right to control the possession. The mode by which the possession is to be transferred, is well settled by the practice in courts of equity. When the decree of foreclosure directs the mortgagor, or the party in the possession of the mortgaged premises, to surrender up the possession to the purchaser, the court, upon an affidavit showing the service of a copy of the order, accompanied with a demand of the possession, and a refusal of the party to comply, will issue a writ of execution of the order to put the purchaser in possession. But where the decree of foreclosure contains no such order, the court, on motion, will make the order, and upon the like service of a copy, and demand of possession, the court will, on motion, and without notice, order an injunction against the party to deliver possession, and then, on affidavit of the service of the injunction, and refusal to deliver possession, a writ of assistance to the sheriff, to put the purchaser in possession, issues of course, on motion, and without notice. This was determined to be the proper practice, in the case of Kenshaw v. Thompson et al., (1) upon a careful examination of the practice in the English courts of chancery. In this case, no order was made upon Aldrich to deliver possession of the mortgaged premises to Sharp, the purchaser, and the writ of habere facias possessionem was improperly awarded.
The decrees of the Circuit Court are reversed with costs, and the cause is remanded for further proceedings conformable to this opinion.
Decree reversed.
Breeze 52.
4 Johns. Ch. R. 610.