Reasonable attorney's fees awarded pursuant to this section for the prevailing party bringing the action on the book account shall be fixed by the court in an amount that shall not exceed the lesser of:
For the party against whom the obligation on the book account was asserted in the action subject to this section, if that party is found to have no obligation owing on a book account, the court shall award that prevailing party reasonable attorney's fees not to exceed nine hundred sixty dollars ($960) for book accounts based upon an obligation owing by a natural person for goods, moneys, or services which were primarily for personal, family, or household purposes, and one thousand two hundred dollars ($1,200) for all other book accounts to which this section applies. These attorney's fees shall be an element of the costs of the suit.
If there is a written agreement between the parties signed by the person to be charged, the fees provided by this section may not be imposed unless that agreement contains a statement that the prevailing party in any action between the parties is entitled to the fees provided by this section.
This section does not apply to any action in which a bank, a savings association, a federal association, a state or federal credit union, or a subsidiary, affiliate, or holding company of any of those entities, or an authorized industrial loan company, a licensed consumer finance lender, or a licensed commercial finance lender, is a party.
Ca. Civ. Code § 1717.5