The applicable accounting standard is the AICPA Audit & Accounting Guide for Common Interest Realty Associations. Unfortunately, it does not provide the method for booking of dues and assessments and collection thereof.
Recognition of revenue is discussed with the
Matching Principle which involves your question of when to recognize revenue. Ideally, all of the dues and assessments would be booked and collected in the fiscal year to which they apply. That of course seldom happens. The internet link provides a good discussion of the principles and reasoning involved. Choose account names that are descriptive for your association, such as "Uncollected Dues", "Accounts Receivable, Dues" and "Prepaid Dues". To be more descriptive, each could have a fiscal year suffix. Cash received is debited to "Prepaid Dues" and then allocated by month as revenue. By using the fiscal year suffix, the balance sheet shows the degree of delinquent dues.
Dues and assessments collected in advance of the fiscal year should be booked as "Prepaid Dues" and then allocated monthly as revenue in accrual accounting. However, the amount allocated should be consistent with the cash collected for the year to avoid inflating revenues beyond the cash received. The uncollected dues and assessments remain Uncollected Dues and Assessments until the cash is received — even if received in a subsequent year. As with most accrual accounting, year-end adjustments are required to match the allocated revenue to the cash received.
Another reference,
Comparison of Cash Method and Accrual Method of accounting
, may be useful.