(1) Section 554 shall not require the exclusion from the sums allowable as a deduction under section 552 of any expenditure as being expenditure in respect of which a capital allowance or renewals allowance is made but, in the computation of the amount of a loss accruing to the person making the disposal, there shall be excluded from the sums allowable as a deduction any expenditure to the extent to which any capital allowance or renewals allowance has been or may be made in respect of that expenditure.
(2) Where the person making the disposal acquired the asset -
(a) by a transfer to which section 289(6) or 295 applies, or
(b) by a transfer by means of a sale in relation to which an election under section 312(5) was made,
then, this section shall apply as if any capital allowance made to the transferor in respect of the asset had (except in so far as any loss to the transferor was restricted under those sections) been made to the person making the disposal (being the transferee) and,
…