Profit and loss report erroneously shows "nothing to show"

I have several different companies. The profit and loss report for all but one company is correct. For this one company, back in 2021, I have got a correct report with many entries for year 2021. Now since we are in year 2022 I now get “nothing to show” for year 2021. Of course, there are still the same general ledger entries for 2021 as before.
I use ERPNext 13.19.0 and Frappe 13.19.0.
Is there an explanation for this behaviour, or a way to debug this?