BOREN, P.J.
Paramount Developers & Contractors, Inc. (Paramount) appeals after a demurrer to Paramount's second amended complaint was sustained without leave to amend. Although we find that Paramount's second amended complaint did not accurately describe the judgment Paramount seeks to enforce in this action, we determine that the demurrer should have been overruled because Paramount adequately alleged that defendant Manufacturers Bank (the Bank) did not comply with all of the judgment's terms. Accordingly, we reverse.
This dispute has a long history. In 1983, the Bank entered into a 20-year written lease agreement with Paramount
A dispute arose when the Bank
Nearly a year later, in September 2000, Paramount filed a separate complaint against the Bank for declaratory relief. In that second case, Paramount alleged that a controversy had arisen between itself and the Bank regarding the effect of section 5.03(d) of the lease agreement.
Paramount's actions for breach of the lease agreement and declaratory relief were consolidated, and a bench trial before Judge Robert H. O'Brien commenced in May 2001. The court issued its judgment on October 1, 2001. The judgment generally favored the Bank, as it was determined that the Bank was entitled to deduct from its monthly lease payments the amounts that it would have received from the proposed sublessee. As for the declaratory relief claim, the judgment stated: "Defendants must, at the appropriate time, prepare a plan to comply with `restoration' in accordance with paragraph 5.03(d). The plan shall include Defendants' removal of `leasehold improvements' and restoration of the premises that were subject to `alterations' to a condition prior to the alterations, which at least means reinstalling the partitions, if that is what Plaintiff wants. Defendants are not required to re-do plumbing, electrical or HVAC which do not meet current codes; nor, are they permitted to redo plumbing, electrical or HVAC systems that simply comply with their original condition at the time of the commencement of the lease if in doing so would be contrary to any current law, regulation, ordinance, or building code, etc. Defendants need not `restore' anything that would be currently contrary to any law, regulation, ordinance or building code, etc. Further, Defendants are not required to `restore' by comparing or matching to any other part of the premises. [¶] Plaintiff and Defendants must, in good faith, reasonably review and consider proposals by one another for the restoration. The manner in which Defendants are obligated to do so must be judged by reasonableness in light of all the circumstances, not the least of which are the passage of time, building, zoning and other legal requirements, availability of materials and a practical good faith consideration by all parties as to the need for an absolute restoration or some alternative."
Both parties appealed. On February 5, 2004, this Court, in an opinion by Justice Michael G. Nott, affirmed the judgment. (Paramount Developers & Contractors, Inc. v. M.B. Administrative Services Corporation et al. (B155076) [nonpub. opn.].)
In December 2004, Paramount brought another action. The complaint in that action alleged that the Bank breached the lease agreement by failing to restore the premises as required by section 5.03(d). Following the Bank's filing of a demurrer, Paramount dismissed its action without prejudice in September 2005.
Paramount filed the instant action against the Bank in October 2007. Following the denial of a motion for summary judgment, Paramount moved to amend its complaint in October 2009. The Bank filed a demurrer to the first amended complaint, which was sustained.
Paramount then filed a second amended complaint, which contained two causes of action: "Enforcement of Judgment Pursuant to Code of Civil Procedure Section 337.50" (sic) and "Breach of Judgment." The allegations largely consisted of a selected summary of the parties' litigation history, with referenced pleadings attached as exhibits. Primarily, Paramount's second amended complaint rested on the allegation that the October 2001 judgment obligated the Bank: "(a) to create a restoration plan `at the appropriate time;' (b) to engage in good faith and reasonable review and exchange with Plaintiff of each parties' restoration proposals; and (c) to complete an absolute restoration of the Premises or some alternative." According to Paramount, the Bank "failed and refused to satisfy its obligations under the Judgment," and "breached the Judgment by, among other things, failing and refusing to restore the Premises as required by the Judgment."
The Bank brought a demurrer, arguing that it had complied with all obligations imposed by the judgment. The trial court sustained the demurrer, this time without leave to amend. Paramount now appeals from the ensuing order dismissing the case.
An appellate court reviews the ruling sustaining a demurrer de novo, exercising independent judgment regarding whether the complaint states a cause of action as a matter of law. (Desai v. Farmers Ins. Exchange (1996) 47 Cal.App.4th 1110, 1115.) We give the complaint a reasonable interpretation, treating the demurrer as admitting all material facts properly pleaded, but not assuming the truth of contentions, deductions or conclusions of law. (Aubry v. Tri-City Hospital Dist. (1992) 2 Cal.4th 962, 967.) A demurrer tests the legal sufficiency of the complaint. (Hernandez v. City of Pomona (1996) 49 Cal.App.4th 1492, 1497.) As such, we are not concerned with the difficulties a plaintiff may have in proving the claims made. (Desai, at p. 1115.)
The portion of the October 2001 judgment addressing Paramount's suit for declaratory relief (filed in September 2000) is central to this appeal. In the instant lawsuit, Paramount contends that it seeks to enforce the pertinent terms of that judgment. According to Paramount, the judgment imposed affirmative obligations on the Bank in the form of injunctive relief, requiring the Bank to take three actions: (a) create a restoration plan; (b) engage in a good faith and reasonable review of each parties' restoration proposals; and (c) restore the premises to a condition approximating the condition in which they existed prior to being altered for the Bank.
Conversely, the Bank argues that the relevant terms of the judgment were merely declaratory. The Bank contends that the judgment addressed the effect of the relevant provision of the lease agreement, but that it did not impose any affirmative obligations. Thus, according to the Bank, the alleged breach was a breach of the lease agreement, not the judgment, and Paramount's recourse was to sue on the lease agreement itself. The Bank posits that Paramount is trying to avoid a time-barred breach of contract claim by fashioning its lawsuit as being on the judgment rather than the lease agreement.
We find that neither party's argument is quite correct. The October 2001 judgment was attached as an exhibit to the second amended complaint, and therefore we may look to its terms to determine what obligations it imposed. Any inconsistencies between Paramount's allegations concerning the judgment and the language of the judgment itself are resolved by giving greater weight to the judgment. (See Mead v. Sanwa Bank California (1998) 61 Cal.App.4th 561, 567-568.)
A review of the judgment shows that it imposed two (not three) affirmative obligations on the Bank: (i) to, "at the appropriate time, prepare a plan to comply with `restoration' in accordance with paragraph 5.03(d);" and (ii) with Paramount, to, "in good faith, reasonably review and consider proposals by one another for the restoration." Although the judgment stated that these acts were to be done in preparation for restoration, the judgment did not actually require the Bank to undertake any construction or similar restoration work.
This result was not anomalous considering that the superior court was ruling on a declaratory relief action. Code of Civil Procedure section 1060 explains the purpose of declaratory relief: "Any person interested under a . . . contract . . . may, in cases of actual controversy relating to the legal rights and duties of the respective parties, bring an original action . . . in the superior court for a declaration of his or her rights and duties . . . including a determination of any question of construction or validity arising under the . . . contract." Furthermore, the "court, in granting declaratory relief, has the power to award additional relief." (Mycogen Corp. v. Monsanto Co. (2002) 28 Cal.4th 888, 901.) In its September 2000 complaint, Paramount asked for a "declaration that [section 5.03(d)] of the Lease requires defendants to restore the Premises to their pre-1983 condition," and "for such other and further relief as the Court deems just." In the October 2001 judgment, the superior court interpreted section 5.03(d) and imposed two obligations on the Bank: to prepare a plan at the appropriate time, and to review and consider proposals. When ruling on the declaratory relief claim, the court was not required to enter a judgment imposing affirmative obligations to physically restore the premises, and indeed it did not do so. Pursuant to its declaratory function, the court provided some general guidance on the scope of restoration requirements embodied in section 5.03(d)—including that restoration would include "removal of `leasehold improvements'" and "reinstalling the partitions," but not "plumbing, electrical or HVAC which do not meet current codes"—but the court did not affirmatively require that any physical restoration work be done.
The superior court's concurrent 2001 statement of decision reflected the fact that its ruling on the scope of restoration was merely declaratory. The decision was explicitly based on the fact that neither party had, as of 2001, terminated the lease, and "defendants do not yet have the obligation to meet the 5.03(d) restoration requirements." The court noted that "defendants have a restoration obligation and not a reconstruction obligation under the Lease," but "[i]t is not clear, however, to what condition the Premises are to be restored." As with the judgment, the statement of decision laid out some general guidelines of work included and not included in the scope of "restoration," but did not provide for a specific restoration plan. Rather, the statement of decision ordered that judgment be entered as follows: that the Bank must "at the appropriate time, prepare a plan to comply with `restoration' in accordance with paragraph 5.03(d) as generally described above. [Paramount] shall be required to, in good faith, confer with [the Bank] relating to restoration needs." No other affirmative relief pertaining to restoration was ordered.
This Court's 2004 opinion (Paramount Developers & Contractors, Inc. v. M.B. Administrative Services Corporation et al.,supra, B155076) does not alter our analysis. Paramount argues that the law of the case doctrine mandates a finding that it may sue in the instant case for the Bank's failure to complete a restoration of the premises. Paramount is incorrect. The law of the case doctrine applies only with respect to prior appellate opinions in the same case. (Daar & Newman v. VRL International (2005) 129 Cal.App.4th 482, 488.) This is not the same case.
In any event, Paramount relies on a single sentence from the prior opinion that (perhaps inartfully) summarized the superior court's decision. Reading the sentence in the context of the opinion, however, reveals that this Court was simply reviewing the superior court's construction of the lease agreement.
Nevertheless, in this appeal, we must reverse the trial court's order of dismissal based on the demurrer. At the demurrer stage the trial court must take the allegations as true. (Kwikset Corp. v. Superior Court (2011) 51 Cal.4th 310, 328, fn. 11.) As alleged in the second amended complaint, the October 2001 judgment required the Bank (i) to, "at the appropriate time, prepare a plan to comply with `restoration' in accordance with paragraph 5.03(d);" and (ii) with Paramount, to, "in good faith, reasonably review and consider proposals by one another for the restoration." Giving the second amended complaint a reasonable interpretation, it adequately alleges that the Bank failed to comply with these two requirements. The trial court was not permitted to find that the Bank had complied because, in ruling on a demurrer, the court may not make factual findings. (Mink v. Maccabee (2004) 121 Cal.App.4th 835, 839.)
The order of dismissal and order sustaining the demurrer are reversed, and the matter is remanded for further proceedings not inconsistent with this opinion. Each party is to bear it own costs on appeal.
ASHMANN-GERST, J. and CHAVEZ, J., concurs.