The Social Security (Ireland) Order (Northern Ireland) 2007

(2) Where a person is employed in the territory of both Parties for the same period, liability for contributions for him shall be determined only under the legislation of the Party in whose territory he is ordinarily resident.