Stock aging report issue

any one can help me in this error while opening “Stock aging report”

See this note Stock Ageing Report - TypeError: ‘<’ not supported between instances of ‘int’ and ‘str’

edit: This PR is pending review to commit to version-12-hotfix https://github.com/frappe/erpnext/pull/22457