Patterson, J. :
This action was commenced against John L. Sardy and John Bal'd Rogers, composing the firm of Sardy, Coles & Co., and Nathaniel P. Rogers. John Bard Rogers demurred to the original complaint, his demurrer was sustained and he disappeared from the action. Pending suit Nathaniel P. Rogers died, and the executors of his will were substituted as defendants in his place.
When the cause was before us on a former appeal (1 App. Div. 623), it came up as an action in replevin, in which the plaintiff had recovered a judgment. That judgment was reversed for the reason that under the proofs, as they then appeared, the plaintiff had neither the legal title to, nor the technical legal right to possession as pledgee of, the merchandise, the subject of -the action. In discussing the ease as it was then made, it was said in the opinion of the court that at the utmost and upon the conceded facts, the plaintiff acquired ■only an equitable lien on the merchandise. After the judgment of reversal was entered, the plaintiff applied for leave to amend the •complaint, which was granted and an amended pleading was served which transformed the action into one in equity, bringing within its scope and for administration by the court, all the equities of the parties arising not only out of the original transaction, but alsd those springing from the acts and dealings of the plaintiff with respect to the merchandise and the proceeds of some of it, after the institution of the action and in execution of the writ of replevin. The defendant answered the amended complaint, the cause went to trial and resulted in another judgment in favor of the plaintiff, granting it, upon an adjustment of all the equities, the relief it asked. In the amended complaint, the facts necessary to the assertion and establishment of an equitable lien are stated, unless that *360complaint is fatally defective in particluars which will be adverted! to hereafter.
There can be no doubt upon the proven facts that ,the plaintiff was entitled upon the original transaction to an equitable lien, nor do we think it disputable that upon the uncontradicted facts .connected with that original transaction the plaintiff would have been -entitled to a decree to compel specific-perfonnance of the agreement to give to it in pledge and upon demand the merchandise upon which it made the advances set forth in the complaint. That there is an inconsistency in the different attitudes which the plaintiff has taken with respect to the merchandise is doubtless true. Its first claim was as owner and was founded upon the relation it claimed was established by the execution and delivery of the trust receipt given in connection with its advance of money. This court having held that the plaintiff did not occupy the relation of owner to the property, the suit was reconstructed by the amended complaint, and ,the right to an equitable lien was asserted. As the action is now brought before us, it is immaterial what may have been the plaintiff’s original attitude, for the defendants have acquiesced in trying the issues as they are tendered by and framed upon the allegations of the amended complaint. It is necessary, however, that we recur to the early history of the transaction between the parties in order to understand how the equitable rights asserted by the plaintiff arise.
The firm of Sardy, Coles & Co., consisting of Mr. Sardy and John Bard Rogers,'imported from Europe certain merchandise, yvhich, on the 31st of August, 1891, was in the city of New York in the possession of the United States customs authorities and held by. them.subject to the payment of duties. The evidences of title, viz., the bills of lading and the consular invoices, were made out in. the name of and were held by the firm of Perry, Ryer & Co., custom house brokers, in whose name the importation had been made by Sardy, Coles & Co. The last-named firm, not having the money with which to pay the import duties, applied to the president of the plaintiff for a loan to enable them to do so. The application was made by Mr. Sardy, accompanied by Mr. Ryar of the firm of Perry, Ryar & Co. Sardy told the president of the jfiaintiff that he had bought the goods abroad, and Mr. Ryar confirmed that remark and Stated that his firm had .no interest in the goods other than to collect *361the duties and to make the entries at the custom house. ThereupoBthe' sum of $3,000 was loaned by the plaintiff to Sardy, Coles & Co.f with the knowledge of Perry, Ryar & Go., and a promissory note-was made by Sardy, Coles & Go. and delivered to the plaintiff, which note was dated August 31, 1891, and was for the sum of $3,000, payable on demand, with interest at the rate of six per cent,, and it recited that the makers had deposited with the bank, as collateral security for its payment, certain merchandise (being the merchandise referred to in this action), and it also recited that ther makers “ do hereby give the said National Bank of Deposit a lien-for all of the said demands upon all property left with said National Bank of Deposit * * * and hereby authorize said bank, on the non-performance of this promise, or the non-payment of any of the-demands aforesaid, or failure to furnish further security as hereafter agreed, to sell the whole or any part of said collaterals,” etc. The agreement for security contained in this note seems to have-been considered' as a bill of sale. At the same time Sardy, Coles Co. delivered to the plaintiff a certain document, called a trust-receipt, in the following words: “Received of the National-Bank of Deposit the following goods and merchandise specified-in the bill of sale, dated * * * August 31, 1891, herewith attached, and' in consideration thereof we thereby agree to hold-said goods in trust for said bank, and as their property to sell thff same for their account; and further agiee in case of sale to hand the proceeds to them to apply against any indebtedness to said-bank on our account under loans on our account and for payment of any indebtedness of ours to said bank. The National Bank of Deposit may at any time cancel this trust and take possession of said goods or the proceeds that may be found ; and in the event of any suspension or failure or assignment for benefit of creditors on- our part, or of the non-fulfillment of any obligations, or of the non-payment at maturity of any indebtedness made by us under said con=signment by the National Bank of Deposit on our account, or of any indebtedness to said bank, all obligations, acceptances, indebtedness and liabilities whatever shall thereupon (with or without notice) mature and become due and payable. The said-goods while in our possession shall be fully insured against loss by fire,”
*362' The merchandise was taken from the custom house, the duties, having been paid with a part of the money borrowed on this transaction from the plaintiff. After the goods came into the possession .¡of Sardy, Coles & Co., a portion thereof was sold. Shortly thereafter Sardy, Coles & Co. made an assignment to Nathaniel P. .Rogers of a stock of merchandise and their accounts, to secure Mr.. Rogei’s for advances of money he had made to that firm. Under -that assignment Mr. Rogers took possession of the merchandise,, -including the unsold portion covered by the trust receipt, and he ¡also collected the amounts due on the portion of that merchandise •¡that had been sold.
Thus far, the relations existing between the parties are very clearly .¡defined. The bank had advanced its money on a specific agreement-that it should have certain merchandise as security. That merchandise was to come into the possession of the borrower of the money it was to be received and sold on account of the lender; the actual possession was' to be given to the latter upon its demand.,, Mi*. Nathaniel P. Rogers, when he took possession of some of the merchandise under the assignment to him and collected the proceeds of ¡sale of the other portion, stood in no better or other or different relation to the subject than Sardy, Goles & Co. maintained. He bad actual notice of the plaintiff’s claim to the property. In that situation, the plaintiff, not being entitled to gain possession of the goods by an action of replevin, as was heretofore decided, was ¡authorized to apply to a court of equity to establish and to enforce its right in and! to the goods by way of equitable lien and to have ¡such disposition made of them as equity and justice required. An ¿equitable lien must be judicially established and declared. It must be found to exist, and in its very nature is a right not recognized by 'law,' to have the property or its avails applied as required by some ¡agreement or transaction binding in conscience upon the parties to it. We have in the case, therefore, the cardinal facts that the sum ¿of $3,000 was advanced ; an agreement for & lien upon certain merchandise, from which reimbursement of the loan was to be made; an agreement that the goods should be held or disposed of solely for the benefit of the lender or delivered to it on demand. We have no doubt that as between the bank and Sardy, Coles & Co. and any one Slot a bona fide transferee from that firm, specific performance of *363that agreement would be compelled. (Husted v. Ingraham, 75 N. Y. 254, citing Holroyd v. Marshall, 10 H. L. Cas. 191; Mitchell v. Winslow, 2 Story, 630; Smithurst v. Edmunds, 1 N. J. Eq. 408; Hale v. Omaha Nat. Bank, 49 N. Y. 626; S. C., 64 id. 550.)
The whole of this transaction in its origin indicates not only the intention of the parties that the lien should exist, but its form was such that when the goods came into the possession of Sardy, Coles & Co. the plaintiff’s right immediately attached. Sardy, Coles & Co. did not have the legal title to the merchandisethat was in Perry, Ryar & Co. That firm, in effect, transferred and delivered to Sardy, Coles & Co. the possession of that merchandise. - When it thus came into the possession of Sardy, Coles & Co., they took it affected in equity by all the terms of the agreement contained in the provision for security incorporated in or connected with the note and in the trust receipt. The plaintiff’s equity is, therefore, so clearly established that it does not admit of doubt or discussion.
We think it quite clear that, under the agreement of the parties, the court could have decreed that Sardy, Coles & Co., upon the demand of the plaintiff, should deliver to ■ it the possession of this merchandise to be held as security to the note; and, that being so, the court had jurisdiction to declare what the rights of the plaintiff in and to that merchandise or its- proceeds are, and to settle all matters in controversy between the parties respecting the same. With that jurisdiction and power, the plaintiff has brought before the court in its amended complaint certain matters showing a change in its relation to the property operated by the institution of this action ns one in replevin and the disposition of ■ a certain portion of the merchandise pending the action. It sets up in the amended complaint that a portion of the goods and chattels were taken by the sheriff of the city and county of .New York and handed over to the plaintiff upon its giving an undertaking in replevin; that the goods “ were never rebonded by the sheriff, but these defendants still hold the bond of this plaintiff conditioned for the return of said goods or their value ; ” and it further appears in the proofs that of the goods taken by the. sheriff and delivered to the.plaintiff on the writ, a certain portion was sold by the plaintiff and it now retains the proceeds. Although the case came before the court at the last trial in a most awkward and inartificial manner, nevertheless, upon *364the proofs, the equities of the plaintiff were fully made out and its-right to relief on those proofs was fully established. The curious performance of turning the replevin suit into a bill in equity was acquiesced in. The trial justice was justified in the decision he made.. He finds, in substance, the facts of the original transaction, and properly stated the rights of the parties thereunder, namely, that' there was an actual agreement between the plaintiff and Sai’dy, Coles & Co. to pledge the identical goods, the subject of the-action; that they received those goods and became possessed of them in trust for the plaintiff; that as to the goods the subject of the agreement to. pledge or the proceeds of any goods that were affected by that agreement which came into the hands of Nathaniel P. Rogers and remained unaccounted for, the defendants, the executors of his will, were liable to account; and that as to the goods taken by the plaintiff on the replevin, the proceeds of which were in the plaintiff’s hands, the plaintiff’s possession was not absolute, notwithstanding the amendment of the pleadings,- and there being an issue as to the substantial rights of the parties thereto, he held that the plaintiff was entitled to judgment in equity, to the effect that it had an equitable lien upon the goods seized in replevin, and that the-lien was transferred and attached to the proceeds of the goods and that the judgment should declare the plaintiff was entitled to the-property and should award to the plaintiff the proceeds and direct that the undertaking given on the replevin be canceled. All the facts being before the court, it could, adapt its relief to the requirements of the case (Murtha, v. Curley, 90 N. Y. 372), and the relief which was ¿ranted could not be awarded until the plaintiff’s rights were ascertained, its equitable lien established, and thereupon it became competent for the court to make a final disposition of the whole subject-matter of the action and, without further vexatious litigation, end the controversy between the parties.
But the defendants insist that material proof upon which the decree was based was inadmissible under the pleadings and that the court below was not justified in making its adjudication upon that proof, because of insufficiency of the allegations of the amended complaint. The point is legitimately in the case. It was raised at the beginning and was insisted upon at various stages of the trial, and cannot be ignored. Before any evidence,was'offered, counsel *365for the defendants moved to dismiss the complaint on the specific grounds that the plaintiff failed to state therein that anything was due from the firm of Sardy, Coles & Co. to the plaintiff; that there was no allegation of any indebtedness whatever of that firm to' the plaintiff; that the complaint failed to state that the goods on which the plaintiff claimed an equitable lien ever became the goods of Sardy, Coles & Co., and, therefore, failed to show that the bank •ever obtained a lien on any goods, and that it was impossible that an effectual judgment should be given in the case in the absence of John Bard Rogers, who was a member of the firm of Sardy, Coles <& Co. The court reserved its decision on that motion, directed the trial to proceed, and stated that in case the motion should be denied .an exception would be noted for the defendants, and, if granted, the plaintiff would have an exception. At a subsequent stage of the •case, when evidence was offered of the note being unpaid and enforcible, the objection to the admission of the testimony was renewed, and at the close of the trial a motion to dismiss was again made on substantially the same grounds as at first, and again the court reserved its decision-. Thereupon counsel for the plaintiff moved to amend the pleadings to conform to the proof “ in respect to the allegation that Sardy, Coles & Co. owned these goods, and in respect to the allegation that the debt caused by the borrowing of the money by Sardy, Coles & Co. from the bank was not repaid; and that these goods had come into the possession of Sardy, Coles & Go.” Objection was taken to this motion. to amend, that it came too late and was not in proper form; that no amendment had been formulated, and it was impossible to tell what amendment was proposed. The court then remarked: “ I have, subject to the motion, taken all the evidence; subject to the motion to dismiss the complaint for insufficiency.” This was a clear declaration of the court that the evidence was admitted conditionally and subject to the motion to dismiss the complaint for insufficiency. The matter seems to have been left there until the justice made his decision, in which is contained' the following, viz.: “I do further grant the motion of the plaintiff to conform the pleading to the proof as to the goods being the goods of Sardy, Coles & Go. and having come into their possession, and as to the loan of $3,000' not having been wholly repaid, and I do deny the motions of the defendant for the dismissal of the complaipt.”
*366If the complaint is fatally defective for the want of the allegations referred to, the defendants’ counsel is entirely right in the criticism lie makes.upon the conduct of the trial and the action of the court respecting an amendment. It -was not competent for the-court to amend the complaint to conform to the proofs under the-conditions of this record. (Rutty v. Consolidated Fruit Jar Company, 52 Hun, 494, 495: Beard v. Tilghman, 66 id. 15.) The defendants had fairly and honestly challenged the sufficiency of this-complaint from the beginning, and the court had -taken proof subject to the decision of the motion to dismiss the complaint, and when the case was finally submitted, that was reiterated. The defendants were entitled to stand upon the case as it was made, and to have their motion disposed of without proofs, conditionally admitted, being used as the basis of an amendment to conform the pleadings to proofs. But we think the complaint was not iadically defective in the respects claimed by the learned counsel for the appellants, and that it was not necessary for the- maintenance of the action that there should be a direct and positive allegation that the $3,000 not© was actually due or still unpaid, and that the indebtedness of Sardy,-Coles & Co. to the plaintiff for that amount was still outstanding.
Hence, we consider the case as if the defendants’ objections and-motions had been overruled and exceptions duly taken, and shall disregard the amendment allowed to conform the pleading to the proof, holding that such action was not justified, and that no amendment of the amended complaint has been made. It is unquestionably a positive rule that whatever facts are material to the support of an action must be pleaded and proven; as where an action is on contract for the payment of money, non-payment is a material element of the plaintiff’s cause of action (Lent v. N. Y. & Mass. R. Co., 130 N. Y. 504; Cochran v. Reich, 91 Hun, 440; Hicks-Alixanian v. Walton, 14 App. Div. 200); but the allegations here w'ere sufficient to entitle the plaintiff to the relief it asked respecting the merchandise and its application as security to the note. The plaintiff was entitled to some relief, whether a debt was due in the sens© of being payable, or whether it was merely owing. It was enough to show in the complaint that a debt existed. The statement of the transaction as set out in the amended complaint with the exhibits-annexed to and made a- part of that pleading, shows that the plain*367tiff was then the holder of the promissory note and of the trust receipt. The metamorphosed action is founded upon rights acquired-under those two instruments, and its object was to reach security to which the plaintiff claimed to be entitled under them. To obtain-such relief all that was necessary for the plaintiff to show was an indebtedness, an agreement to give the security, and the failure to do so when it was demanded. The existence of the indebtedness is-set forth in the allegation contained in the 2d paragraph of the amended complaint, and proferí of the note is made in that plead-:' ing. The agreements to give the security are contained in the exhibits annexed to and forming part of that complaint. Under its allegation the possession and production on the trial of the note established that the plaintiff was the holder of that note. The breach of the contract to pay the indebtedness was not the gravamen of the action; the right to draw the security to the note held by the plaintiff was the real subject involved. So that, when the motion was made at the beginning of the trial to dismiss the com< plaint for want of an allegation that there was something “ due ’I from the firm of Sardy, Coles' & Co. to the plaintiff, that motion should have been denied. It was also competent for the court to take into consideration the condition and situation of - the merchandise, and what had been done with it under the allegation of the amended complaint, which refers to the execution of the writ of replevin, namely, that some of the goods and chattels were taken under the writ and delivered to the plaintiff upon its giving its bond. There being also allegations in the complaint respecting the receipt by Mr. Nathaniel P. Rogers of the proceeds of some of the goods sold by Sardy, Coles & Co. before the assignment to Mr. Rogers was-made, all the facts relating to the property and its proceeds came legitimately before the court. ■ This view necessarily sustains -the ' admissibility of evidence admitted respecting the debt arising on the note, and the condition of that indebtedness at the time of the trial. It was admissible in order that the court might finally settle the rights of the parties.
It was further objected to the complaint that it. did not allege that the goods on which the plaintiff claimed the lien ever became the goods of Sardy, Coles & Co: There is no such distinct allegation in the complaint,, nor was it necessary. The instruments con*368¡stitutihg the relations between the' parties were annexed to the' .amended complaint, and there is an allegation in its 3d paragraph that Sardy, Coles & Co. acquired the possession of the goods, paying the duties with the moneys advanced hy the plaintiff and taking them from the custom house and holding them pursuant to the terms of the trust agreement. From those facts the court could determine the status of Sardy, Coles & Go. as- to the goods, and declare what equitable duty or obligation was imposed upon that Ürm toward the plaintiff with reference to the goods.
A further ground of nonsuit was urged, and that is that John B. (Rogers, a member of the firm of Sardy, Coles & Co., was not a party •to the action as reconstructed. This objection was not taken by .-answer or demurrer. It appears that he was a party to the replevin .suit; that he demurred to the complaint in that action and he was -discharged from the suit. We do not see that there was any occasion for bringing him back again. A definite judgment as between all the parties settling and adjusting the rights and equities could be liad without his presence.'
The judgment was properly rendered on the pleadings, without any .amendment and the proofs, and should, therefore, be affirmed, -with costs.
Van Brunt, P. J., O’Brien- and Ingraham, JJ., concurred; (McLaughlin, J., dissented.
(McLaughlin, J.
(dissenting) :
I dissent. The defendants’ motion, made at the opening of the -trial to "dismiss the complaint, should have been granted, and they .could-not be deprived, without .their consent or acquiescence, of their (.exception to the refusal to dismiss, by the court’s subsequently conforming the pleadings to the proof. ■
The complaint should have been dismissed, because the facts -therein stated did not constitute a cause of action against the •defendants. The Code of Civil-Procedure provides (§ 481) that a ■complaint must contain a plain and concise statement of the facts .constituting the cause of action. This provision is a wise one. The purpose to be accomplished hy it is manifestly to apprise the defendant in advance of the trial of what the plaintiff intends to prove, in order that a proper defense may be made, and it necessarily fol*369lows that whatever facts are necessary to be proven upon the trial to entitle the plaintiff to recover must be alleged in the complaint. Otherwise, there is no meaning to the section and a complaint serves no useful purpose. Here the complaint did not state a cause of action for the reason that there was no allegation in it, or the statement of any fact from which an allegation to that effect could be inferred, that the firm of Sardy, Coles & Co. was indebted to the plaintiff in any sum whatever.. AH'that the complaint stated upon the subject of an indebtedness was that “ On or about the 31st day of August, 1891, this plaintiff loaned to the defendants John L. Sardy and John Bard Rogers, composing the copartnership firm of Sardy, Coles & Co., the sum of $3,000, for which said firm gave its demand note secured by its pledge or agreement to make a pledge to this plaintiff” of certain described goods. It is true, as stated in the prevailing opinion, that a copy of the note referred to was annexed to the complaint, but there was no allegation that the plaintiff was then owner or holder of the note, or that it had not been paid, of that the firm of Sardy, Coles & Co. was, at the time the action was brought, indebted to the plaintiff in any sum whatever. If this were an action at law to recover the amount of the note, it could not be seriously contended but that the complaint would have been fatally defective in that it failed to allege non-payment. In such case the failure to pay according to the terms of the contract would be the basis of plaintiff’s right to recover. (Lent v. N. Y. & Mass. R. Co., 130 N. Y. 504; Witherhead v. Allen, 4 Abb. Ct. App. Dec. 628; Van Giesen v. Van Giesen, 10 N. Y. 316.)
In the Lent Case (supra) the court said: “ It does not admit of controversy that, upon an ordinary contract for the payment of money, non-payment is a fact which constitutes the breach of the contract, and is the essence of the cause of action and, being such within the rule of the Code, it. should be alleged in the complaint.” And in Witherhead v. Allen (supra): “ When the action is founded upon a contract obligation or duty, the very gist and essence of the ■cause of action is the breach thereof by the defendant, and unless the breach is alleged no cause of action is shown; ” and in Van Giesen v. Van Giesen (supra): “ The material allegations of the complaint in this case are, the making by the defendants of the promis*370sory note, the transfer of it to the plaintiff and the nompa/yment of it by the defendants.' Each of them is material, for without the concurrence of all of them the complaint would not show a cause of action.” Manifestly not only under the plain and obvious meaning of the section of the Code referred to, but under the authorities-cited, in an action to recover upon the note itself, it would be necessary for the plaintiff to allege and prove non-payment. If I am' right in this conclusion, then it necessarily follows, as it seems tome, in an equitable action brought to establish a pledge of personal-property given to secure payment of the note, and to foreclose the pledge, that the fact of non-payment of the note must be alleged-in the complaint and proved upon the trial. It cannot be otherwise, because the breach of the contract to pay the note is of the essence of the cause of action. It is the basis of plaintiff’s right to proceed in equity. It is the fact which gives it standing in court. Payment of the note would, ipso facto, satisfy the pledge and destroy any right which the plaintiff theretofore had to proceed in equity. It follows, therefore, that non-payment of the note must be alleged in the complaint, and the plaintiff having failed to allege that fact, the complaint should have been dismissed. (Ryan v. Holliday, 110 Cal. 335.) It is unnecessary to pass upon the other questions raised.
. For these reasons I cannot concur in the opinion of Mr. Justice Patterson. I think the judgment should be reversed, and a new trial granted, with costs to the appellant to abide the event.
Judgment affirmed, with costs.