Currently, entries are created only by users. However, since entries can't be marked invoiced before they're created, it's possible that someone could go back and create a brand new entry with a state of 'draft', and even submit it, even though that date range has been invoiced already.
Probably the best solution (to kill two birds with one stone) would be to automatically create empty entries for all project_stage_roles when those psrs are created.
It would still probably be best to know the start or creation date of the project, so we know to create new entries that go back that far, and can check to ensure that people aren't creating entries prior to that date.
Alternatively, if we have a 'most recent' invoice date on the project, we can just disallow creating entries that are before that date.
Currently, entries are created only by users. However, since entries can't be marked invoiced before they're created, it's possible that someone could go back and create a brand new entry with a state of 'draft', and even submit it, even though that date range has been invoiced already.
Probably the best solution (to kill two birds with one stone) would be to automatically create empty entries for all project_stage_roles when those psrs are created.
It would still probably be best to know the start or creation date of the project, so we know to create new entries that go back that far, and can check to ensure that people aren't creating entries prior to that date.
Alternatively, if we have a 'most recent' invoice date on the project, we can just disallow creating entries that are before that date.