OPINION
{1} In this appeal, we address whether the trial court may sua sponte award equitable relief to a party on the basis of unjust enrichment in an action based solely on express contract under Article 2 of the Uniform Commercial Code, NMSA 1978, §§ 55-2-101 to - 725 (1961, as amended through 2001) (the UCC). We hold that the trial court erred in awarding restitution to Plaintiff where Defendant did not have actual notice of the theory of unjust enrichment, did not consent to the trial of the issue, and did not have a fair opportunity to defend against such a claim. We reject Plaintiffs contention that the trial court found partial acceptance of the goods by Defendant under Article 2 of the UCC. We further hold that the trial court erred in awarding attorney fees to Plaintiff. We therefore reverse the trial court’s judgment.
FACTUAL AND PROCEDURAL BACKGROUND
{2} In September 1999, Defendant Veterinary Nutrition Corporation (Buyer) ordered labels for its dog food products from Capitol Litho, a printing company (Seller). The purchase order set forth the quantity, price, and description of the labels that Buyer wanted to buy from Seller. Specifically, Buyer sought 20,000 labels from Seller for the price of $7,976. Each label was to be 19 V by 36 J4 " in size. The labels were to be printed in black, burgundy, and gold.
{3} At Seller’s request, Buyer also signed and completed a New Account Application form. The application included the following language: “Applicant agrees to pay amounts owed [Seller] within 30 days of the date of the invoice and any indebtedness not paid when due shall bear interest at the maximum legal rate. Applicant promises to pay reasonable attorney fees if it is necessary to retain the services of an attorney to collect any indebtedness owed [Seller] by applicant.”
{4} Seller and Buyer exchanged proofs of the labels. Buyer did not at any time request changes to either the size or the color of the labels as stated in the purchase order. Without sending a final color match to Buyer or receiving Buyer’s final approval on any proof, Seller proceeded to print up labels for Buyer. Seller delivered 20,000 labels to Buyer on September 29,1999.
{5} Neither the color nor the size of the labels matched the description of the labels in the purchase order. In particular, the labels were not burgundy, but pink. The labels also did not have the measurements stated in the purchase order and did not fit Buyer’s dog food boxes.
{6} After the delivery, Buyer promptly contacted Seller by phone and informed it that the labels did not conform to the purchase order and requested that the labels be picked up by Seller. On October 5, 1999, Buyer sent a letter to Seller rejecting the labels. Seller instructed Buyer to use the defective labels until it could remedy the problem. In accordance with Seller’s instructions, Buyer used approximately 4,000 to 4,500 of the defective labels it received from Seller. To make use of the labels, however, Buyer had to cut or modify the labels and its dog food boxes. Buyer also had to obtain new boxes in order to use the nonconforming labels, and ultimately switched to packaging its dog food in bags instead of boxes.
{7} Seller never retrieved the labels from Buyer and did not redress any of the problems with the labels. Instead, Seller continued to bill Buyer for the full price of the contract, including interest. Seller eventually turned the matter over to Plaintiff The Credit Institute, a collection agency, for collection.
{8} The complaint alleged two counts against Buyer based on the express contract between Buyer and Seller: one for money allegedly due on an open account and the other for money allegedly due on accounts stated. Buyer filed an answer to the complaint, denying that it had an open account with Seller and asserting the affirmative defense that the goods delivered by Seller were defective and nonconforming to the contract, that Buyer timely notified Seller of the defect and nonconformance with the contract and attempted to return the goods, but that Seller refused to accept return of the goods. Plaintiff later filed an amended complaint, adding factual allegations concerning the New Account Application signed by Buyer. No answer to the amended complaint was ever filed.
{9} Following a trial on the merits, the trial court found that Seller delivered goods to Buyer that were defective and nonconforming to the contract, that Buyer timely notified Seller of its rejection of the goods, and that Seller refused to accept the return of the goods. However, the trial court further found that Buyer was “enriched” to the extent that it had used 4,500 of the 20,000 labels. Based upon that finding, the trial court sua sponte awarded restitution to Plaintiff in the amount of $2,051.63, plus interest, attorney fees, and costs, for a total judgment of $3,476.57. This was the first time restitution or unjust enrichment had ever been mentioned in these proceedings.
{10} Buyer timely moved to amend the judgment, arguing that although the trial court properly denied Plaintiff legal relief, it improperly granted Plaintiff equitable relief where Plaintiff did not request such relief in its complaint, did not argue the theory of unjust enrichment at trial, and did not seek to amend its complaint to conform to the evidence. Buyer further argued that the award of restitution was improper where there was no evidence that its use of the nonconforming labels was unjust. Plaintiff filed a response opposing the motion and requesting that the complaint be amended to conform to the evidence. The motion to amend the judgment was deemed denied by operation of law. This appeal followed.
DISCUSSION
Preservation
{11} Initially, we address whether Buyer’s claims on appeal were properly preserved for review. Plaintiff argues that Buyer waived its right to challenge the trial court’s decision because it (1) did not file an answer to the amended complaint, and (2) did not submit requested findings of fact and conclusions of law following the trial. We conclude that Buyer’s claims of error were adequately preserved for review.
{12} First, we reject Plaintiffs claim that Buyer’s failure to file an answer to the amended complaint amounted to waiver. The amended complaint differs from the original complaint in only one respect: paragraph five of the amended complaint refers to and incorporates the New Account Application which is attached to the amended complaint as Exhibit B. In all other respects, the amended complaint is identical to the original complaint.
{13} As noted above, Buyer filed an amended answer to the original complaint. By not filing a separate answer to the amended complaint, Buyer, at most, admitted only the new factual allegations contained in paragraph five of the amended complaint. See Rule 1-008(D) NMRA 2002 (“Averments in a pleading to which a responsive pleading is required, other than those as to the amount of damage, are admitted when not denied in the responsive pleading.”). There is no reason to believe, however, that Buyer renounced any of the denials or affirmative defenses set forth in its answer to the original complaint. Most importantly, those affirmative defenses were actually litigated by the parties at trial which supersedes the pleadings preceding trial. See Rule 1-015(B) NMRA 2002. Because the amended complaint did not add any new claims or legal theories, and Buyer’s answer to the original complaint included affirmative defenses that were actually litigated by the parties, we conclude that Buyer’s failure to file a second amended answer cannot be deemed to be a waiver of its claims on appeal. See Rule 1-015(B) NMRA 2002.
{14} Second, we conclude that Buyer’s failure to tender requested findings and conclusions does not preclude appellate review. As Buyer points out in its reply brief, it is not contesting the trial court’s findings of fact or seeking a review of the evidence on appeal. Instead, it is challenging only the trial court’s legal conclusions that Plaintiff is entitled to equitable relief and attorney fees. Although the failure to request findings and conclusions may bar sufficiency of the evidence review, we “may still review the trial court’s decision to determine whether it is legally correct, and whether it is supported by findings of fact, if any, made by the trial court.” Blea v. Sandoval,
{15} In any event, we conclude that Buyer sufficiently alerted the trial court’s attention to the issues raised on appeal in its motion to amend the judgment. Within ten days after the entry of the trial court’s judgment, Buyer filed a motion to amend the judgment specifically challenging the trial court’s award of restitution and attorney fees to Plaintiff on the same grounds advanced on appeal. Rule 1-052(D) NMRA 2002 provides: “Upon motion of a party made not later than ten (10) days after entry of judgment, the court may amend its findings or conclusions or make additional findings and conclusions and may amend the judgment accordingly.” Thus, although Buyer waived requested findings and conclusions following trial, it preserved its claims on appeal in its motion to amend the judgment. See Cockrell v. Cockrell,
Award of Equitable Relief
{16} Buyer argues that the trial court improperly awarded restitution to Plaintiff where such relief was not requested in the complaint, and the theory of unjust enrichment was not argued by Plaintiff at trial. Buyer also argues that the award of restitution to Plaintiff was improper where there was no evidence or specific finding by the trial court that Buyer’s enrichment was “unjust.” Because we agree with Buyer’s first argument, we need not address its second contention.
{17} We review the trial court’s grant of equitable relief under an abuse of discretion standard. Nearburg v. Yates Petroleum Corp.,
{18} Because this action involves a con- . tract for the sale of goods, both parties agree that it is governed by Article 2 of the UCC. The parties, however, disagree on whether the trial court actually determined that Seller breached the sales contract between the parties. We conclude that the trial court, in finding that Seller delivered goods to Buyer that were defective and nonconforming to the contract, necessarily found that Seller breached the terms of the contract. See Deaton, Inc. v. Aeroglide Corp.,
{19} Even assuming that the remedy of restitution would have been available to Plaintiff, we conclude that the trial court erred in awarding restitution to Plaintiff. Generally, the trial court “may not grant judgment for relief which is neither requested by the pleadings nor within the theory on which the case was tried.” Leonard Farms v. Carlsbad Riverside Terrace Apartments, Inc.,
{20} In this case, neither the original nor the amended complaint set forth adequate facts to put Buyer on notice that Plaintiff was asserting a claim of unjust enrichment. Plaintiff argues that the prayers for relief in the complaint request “such other amount” and “such other and further relief as the Court may deem appropriate”, and thus encompass a claim for equitable relief. Our review of the allegations in the amended complaint reveals, however, that Plaintiff sought recovery solely on the theories of open account, account stated, and breach of contract — all express contract theories.
{21} A claim for restitution is distinct from a contract claim. It is rooted in principles of quasi-contract or quantum meruit, and its principal objective is to prevent unjust enrichment. Tom Growney Equip., Inc. v. Ansley,
{22} Although our liberal rules of notice pleading do not require that specific evidentiary detail be alleged in the complaint, see Petty v. Bank of N.M. Holding Co.,
{23} The deficiency in the complaint, however, does not resolve this appeal. See Farmers, Inc. v. Dal Mach. & Fabricating, Inc.,
When issues not raised by the pleadings are tried by express or implied consent of the parties, they shall be treated in all respects as if they had been raised in the pleadings. Such amendment of the pleadings as may be necessary to cause them to conform to the evidence and to raise these issues may be made upon motion of any party at any time, even after judgment; but failure so to amend does not affect the result of the trial of these issues----
In addition, Rule 1-054(C) NMRA 2002 provides: “[E]very final judgment shall grant the relief to which the party in whose favor it is rendered is entitled, even if the party has not demanded such relief in [his] pleadings.” Accord State ex rel. Newsome v. Alarid,
{24} In State ex rel. Gary v. Fireman’s Fund Indem. Co.,
{25} Although these cases appear to recognize that recovery may be had on an unpled claim for unjust enrichment in a contract action, our Supreme Court has also underscored the need for notice to the opposing party, so that an opposing party may not be prejudiced by a late shift in the theory of the case. Due process still requires that the opposing party have notice and an opportunity to defend against the theory not stated in the pleadings. See Farmers, Inc.,
{26} In this case, Buyer had no reason to know that unjust enrichment was a theory to be covered at trial. First, there was no pretrial order defining the issues for trial or disclosing the parties’ contentions. See Rule 1-016(E) NMRA 2002; Fahrbach v. Diamond Shamrock, Inc.,
{27} Plaintiff asserts that this Court should affirm because Buyer did not object to the evidence upon which the trial court based its restitution award. See White v. Wayne A. Lowdermilk, Inc.,
{28} Although the trial transcript reveals that it was Buyer, not Seller, who introduced the evidence upon which the trial court relied, it is plain that Buyer presented such testimony only to demonstrate that it had used the labels at Seller’s instructions and to show that they did not conform to the contract and required substantial modification before use. The evidence, therefore, was relevant to Buyer’s affirmative defenses of rejection and nonconformity and only coincidentally supported the theory of unjust enrichment. This Court has previously stated that where evidence admitted without objection is relevant to both a pled issue and an unpled issue, the unpled issue is not litigated under implied consent. McKay v. Kimble,
{29} Finally, we conclude that Buyer was unfairly prejudiced by the change in theory of the case. The test for determining prejudice is whether the opposing party had a fair opportunity to defend against the claim and whether it could offer any additional evidence if the ease were to be retried on a different theory. Id. at 523,
{30} In this case, the trial court, by sua sponte awarding restitution to Plaintiff post-trial, deprived Buyer of the opportunity to present any legal or equitable defenses it may have had to an unjust enrichment claim. If Buyer had been aware of the claim, it may have wished to argue or present additional evidence that it was not unjustly enriched where it did not accept, want, or bargain for the defective labels that it received from Seller. See Tom Growney,
{31} Ordinarily, the burden is on the plaintiff to prove that the damages suffered by the buyer are less than the benefit conferred on it. Id. Here, however, the trial court prevented Buyer from presenting any evidence concerning the amount of damages caused by the breach because Buyer was unaware of the need to do so. The court inappropriately relieved Plaintiff of its burden of proof at trial and awarded Plaintiff a straight percentage of the contract price based on the number of labels used without taking into account Buyer’s incidental and consequential damages.
{32} Therefore, because the theory of unjust enrichment was not pled, argued, or tried by the parties, and Buyer did not have notice of the theory until the court entered judgment and he was unfairly prejudiced, we hold that the trial court erred in sua sponte awarding restitution to Plaintiff.
Partial Acceptance
{33} Despite the trial court’s express findings, Plaintiff argues that the trial court did not make an award of equitable relief to Plaintiff, but instead determined that Plaintiff made partial acceptance of the defective labels under Article 2 of the UCC. See § 55-2-601(c); § 55-2-606(l)(a). We are not persuaded by this argument.
{34} As noted above, the trial court specifically found (1) that the labels shipped by Seller were defective and nonconforming to the contract; (2) that Buyer timely notified Seller of the defect and nonconformance; and (3) that Seller refused to accept return of the defective goods. These unchallenged findings do not support any conclusion of partial acceptance. Rather, implicit in the findings is the determination that Buyer effectively rejected all the labels and that Seller refused to accept return of the goods. Where a buyer holds the goods for a time sufficient to permit a seller to remove them, and the seller refuses to do so, the buyer “has no further obligations with regard to goods rightfully rejected.” Section 55-2-602(2)(b) & (c). Thus, Buyer’s use of the labels in this case does not amount to acceptance. See § 55-2-601 Official Cmt. 2 (stating that “the buyer’s attempts in good faith to dispose of defective goods where the seller has failed to give instructions within a reasonable time are not to be regarded as acceptance”); White Sands Forest Prods., Inc. v. First Nat'l Bank,
{35} Moreover, Section 55-2-606(1) provides that goods are accepted when the buyer (a) signifies to the seller that the goods are conforming or that he will take or retain them despite their nonconformity, (b) fails to make an effective rejection after having had a reasonable opportunity to inspect the goods, or (c) does any act inconsistent with the seller’s ownership. See also O’Shea v. Hatch,
{36} In this case, Buyer did not affirmatively signify to Seller that it would take or retain the defective labels. Nor was Buyer’s conduct inconsistent with its rejection. To the contrary, the undisputed evidence reveals that Buyer acted in accordance with Seller’s instructions to use the defective labels until it could resolve the problem. Under these circumstances, Buyer’s use of the labels cannot be deemed an “act inconsistent with the seller’s ownership.” Section 55-2-606(1)(c); see also O’Shea,
{37} We also reject Plaintiffs suggestion that Buyer’s use of the labels was an attempt to “cover” for the nonconforming goods. As Buyer points out, “cover” consists of “goods not identical with those involved but commercially usable as reasonable substitutes under the circumstances of the particular case.” Section 55-2-712 Official Cmt. 2 (emphasis added). Thus, cover does not apply to the situation here where the buyer uses the nonconforming goods sent by the seller.
Attorney Fees
{38} Finally, Buyer argues that the trial court erred in awarding attorney fees to Plaintiff. We review the trial court’s award of attorney fees for an abuse of discretion. Lenz v. Chalamidas,
{39} Because the trial court dismissed Plaintiffs open account claim on directed verdict, we find no statutory basis for the award of attorney fees in favor of Plaintiff. See NMSA 1978, § 39-2-2.1 (1975) (providing that prevailing party in an action on open account is entitled to recover reasonable attorney fees). We therefore look to the contract between the parties.
{40} According to the New Account Application signed by Buyer, it was required to pay Seller’s reasonable attorney fees if Seller retained the services of an attorney “to collect any indebtedness owed” to Seller. The trial court, however, did not find that Buyer was “indebted” to Seller under the contract; it could not have, where it found that Seller was in breach of the contract and that Buyer properly rejected the defective goods. Therefore, the award of fees cannot have been based on the contract in this case. Moreover, Plaintiff is not entitled to fees solely by virtue of its status as prevailing party below. See Schroeder v. Mem’l Med. Ctr.,
CONCLUSION
{41} For the foregoing reasons, we reverse the judgment in favor of Plaintiff and remand for entry of judgment in favor of Buyer.
{42} IT IS SO ORDERED.
