(1) An S corporation shall not be subject to the tax imposed by this article.
(2) For the purposes of section 39-22-104, each shareholder's pro rata share of the S corporation's income attributable to the state and each resident shareholder's pro rata share of the S corporation's income not attributable to the state, all as modified pursuant to section 39-22-323, shall be taken into account by the shareholder in the manner provided in section 1366 of the internal revenue code.
(3) For the purposes of determining the amounts taken into account by the shareholders of an S corporation pursuant to subsection (2) of this section, the amount of any tax imposed on the S corporation under the internal revenue code shall proportionately reduce the S corporation's income attributable to the state and income not attributable to the state.