Cal. Rev. & Tax. Code § 7156
(a) In the case of any civil proceeding which is—
(2) Brought in a court of record of this state,
the prevailing party may be awarded a judgment for reasonable litigation costs incurred in that proceeding.
(b)
(c) For purposes of this section—
(1) The term “reasonable litigation costs” includes any of the following:
(B) Based upon prevailing market rates for the kind or quality of services furnished any of the following:
(2)
(A) The term “prevailing party” means any party to any proceeding described in subdivision (a) (other than the State of California or any creditor of the taxpayer involved) which—
(ii)
(B) Any determination under subparagraph (A) as to whether a party is a prevailing party shall be made—
(d) For purposes of this section, in the case of—
(2) A case or cases involving a return or returns of the same taxpayer which could have been joined in a single proceeding in the same court,
these actions or cases shall be treated as one civil proceeding regardless of whether the joinder or consolidation actually occurs, unless the court in which the action is brought determines, in its discretion, that it would be inappropriate to treat these actions or cases as joined or consolidated for purposes of this section.
(f) For purposes of this section, “position of the State of California” includes either of the following: