Error when trying to "Save and Close Visit" encounter

Situation
I used to have a perfectlu working openemr all the sudden when I have an encounter with LBF and try to “Save and Close Visit” I am having this error:

Fatal error: Uncaught Error: Call to undefined function updateInvoiceRefNumber() in /var/www/openemr/library/FeeSheet.class.php:246 Stack trace: #0 /var/www/openemr/interface/forms/LBF/new.php(362): FeeSheet::closeVisit() #1 {main} thrown in /var/www/openemr/library/FeeSheet.class.php on line 246

I searched github repo for the function updateInvoiceRefNumber and it appeared in 4 locations and each time it was proceeded by BillingUtilities:: except in library/FeeSheet.class.php so I added it to the function to look like $refno = BillingUtilities::updateInvoiceRefNumber(); and this seems to fix my problem. Now I can click same and close with no error.

I am not a developer and I am not sure if I broke something by making this change but it seems to be working for me for now

OpenEMR Version
I’m using OpenEMR version (7.0.2) Patch 3 (same with Patch 2)

Browser:
I’m using: Chrome

Operating System
I’m using: Debian 12

Search
Did you search the forum for similar questions? No

Logs
Did you check the logs? Yes
Was there anything pertinent in them? see above
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All