Hello 2020Concierge,
Welcome to Community! I can understand your concern, when it comes to recording a payment toward an invoice from 2022. QuickBooks Online enables you to 'receive payment' toward open invoices, although the time range is the key factor. This will impact other areas of your books including, but not limited to, bank reconciliations and sales tax. For this reason, I encourage you to speak with an accounting professional for their expertise and best course of action. If you're not connected with an accountant, we can help you locate a ProAdvisor in your local area.
If you have any other questions, please don't hesitate to reach back out. We would be glad to help!