California Revenue & Taxation Code

Cal. Rev. & Tax. Code § 16761

Every payment on the tax imposed by this part is applied, first, to any interest due on the tax, and then, if there is any balance, to the tax itself.

Source: official text