I was advised to set the bill date to 1/1/23 for the bill that is showing as unapplied cash bill payment on the 2022 P&L, then you won't see the unapplied cash ...
I am having this same issue with a credit card bill and payment. In my case the payment date does not predate the bill date, all bills and payments are linked. ...