@Gally you have already asked a similar question here Regular payments
The solution there would be similar to here - but with a different control account - Membership fees in advance.
Your conflict with the first method demonstrated above is that the next year’s membership fee credit on a members account could be swallowed up by any other invoicing for other activities.