(2) For purposes of foreign income, and subject to this chapter and ORS chapters 305, 316, 317 and 318 and ORS 314.712 to 314.722, 314.726 and 316.124, section 1373 of the Internal Revenue Code shall apply to an S corporation and its shareholders. [Formerly 314.738]