(1) For the purposes of this section-
‘affected transaction’ means any transaction, operation, scheme, agreement or understanding where-
(a) that transaction, operation, scheme, agreement or understanding has been directly or indirectly entered into or effected between or for the benefit of either or both-
(i)
(aa) a person that is a resident; and
(bb) any other person that is not a resident;
(ii)
(aa) a person that is not a resident; and
(bb) any other person that is not a resident that has a permanent establishment in the Republic to which the transaction, operation, scheme, agreement or understanding relates;
(iii)
(aa) a person that is a resident; and
(bb) any other person that is a resident that has a permanent establishment outside the Republic to which the transaction, operation, scheme, agreement or understanding relates; or
(iv)
(aa) a person that is not a resident; and
(bb) any other person that is a controlled foreign company in relation to any resident,
and those persons are connected persons or associated enterprises in relation to one another; and
[Subparagraph (iv) amended by section 37(1)(a) of Act 34 of 2019 effective on 1 January, 2023 and applicable in respect of years of assessment commencing on or after that date (effective date in section 37(2) of Act 34 of 2019 as substituted by section 78(1) of Act 23 of 2020 and by section 66(1) of Act 20 of 2021)]
(b) any term or condition of that transaction, operation, scheme, agreement or understanding is different from any term or condition that would have existed had those persons been independent persons dealing at arm’s length;