HMRC have published guidance to record income and expenditure on cash basis or accrual basis. They will accept any tax planning which is part of final accounts and is not tax avoidance.