[size=5]What prompted the deletion of the timesheets?
How were the original time reporting period and its timesheets deleted? Via Delete Investments job, or database update?
Have you considered the actuals on projects doubling, besides WIP ?
Potential impact of what you are doing: data integrity in project actuals, resource allocation, discrepancies between timesheets, project and task actuals, WIP, both in quantity/actuals and cost amount
And finally, please do not touch prrmexported, it is to be used only by the Clarity application[size]