Timesheet rules worked fine in 16.3.1, prior to the 16.3.2 upgrade.
After the upgrade, the option in Classic > Administration > Project Management > Timesheet Options
is available to be checkmarked:
'Allow submission of timesheets with no tasks'
Although this works, this bypasses the business rule that users cannot submit blank timesheets.
Steps To Reproduce
1. Create a rule with the following logic:
Resource person_type = 'Employee'
and Timesheet grand total =0
2. Go to a timesheet in the 'My Timesheet' page.
In the time period carousel, navigate to a period where there are no time entries.
3. Observe that there is already a 'Submit' button.
Expected: The timesheet rule 'Error' button should appear.
Actual: The 'Submit' button can be clicked, and the timesheet rule created is ignored /not enforced.
16.3.2
The only way the timesheet rule is enforced is when the timesheet is populated with tasks, but no hours are entered against it, however this is not easily done
as the empty timesheet readily has the 'Submit' timesheet button available.
As a workaround, do not enable the timesheet option: 'Allow submission of timesheets with no tasks',
which removes the 'Submit' button from the 'My Timesheet' page.
This is addressed in 16.3.3.