Merge pull request #31133 from frappe/mergify/bp/develop/pr-31124

fix: timesheet fetching in sales invoice (backport #31124)