164Basis of valuation of trading stockU.K.
(1)The value of trading stock belonging to the trade at the time of the cessation is determined as follows.
(2)If the stock is sold to a person who—
(a)carries on, or intends to carry on, a trade, profession or vocation in the United Kingdom, and
(b)is entitled to deduct the cost of the stock as an expense in calculating the profits of that trade, profession or vocation for corporation or income tax purposes,
the value is determined in accordance with section 165 (sale to unconnected person), 166 (sale to connected person) or 167 (election by connected persons).
(3)But if section 125 (preventing abuse of the herd basis rules) applies—
(a)the value is not determined in accordance with any of those sections, and
(b)the value is instead taken to be that given by section 125 (the price which the animals transferred would have fetched if sold in the open market at the time of the sale).
(4)In any other case, the value is taken to be the amount which the stock would have realised if sold in the open market at the time of the cessation.