This should be fixed with fix: Error on submitting sales invoice by deepeshgarg007 · Pull Request #24243 · frappe/erpnext · GitHub.
Also, it helps us help you if you provide more details e.g. steps to replicate the issue and any error message/stack-trace shown in the browser console instead of posting a cropped screenshot.