Doctype directory Error

When I try to access in purchase invoice the error shows

FileNotFoundError: [Errno 2] No such file or directory: '/home/frappe/frappe-bench/apps/erpnext/erpnext/buying/doctype/purchase_invoice

if anyone know the solution of this error, please help me. it’s urgent

Please check your git status output in apps/erpnext folder.

Seems like some files have been deleted.

If that is true, try git reset --hard in that folder to get your files back.

Thank you, the problem is solved.