Employee Central Time Sheet – How to restrict employee entering time records in previous calendar month
Customers have asked the following scenario in EC Timesheet and hence I decided to create a short blog on that.
Employees using timesheet should enter their time records only for the current calendar month and restrict any entry before that. Since the current timesheet is only weekly, most weekly timesheets have overlapping months and in such case any entry before the first of month should be restricted. This means in single timesheet should have validation to enter or restrict specific entry.
E.g. of overlapping months within a single timesheet period
EE can enter time entries from 1st -5th Oct and restrict entering 29th & 30th September.
Admin: Admin should not have any restriction. EE will raise request Admin for any retro input beyond current calendar month.
Please note that the Validation Rule of the Time Recording Profile cannot perform this check because the context of validation rule is only Time Sheet Day which will has time entry start date but not booking day object.
Also note that Time Recording Permissibility in Job Info will not serve the purpose as well.
Go to Admin Centre -> Manage Workflow Groups -> Create New Group
Add all Time Admin user to People Pool and Update.
Rule: Create business rule with base object as Employee Time Sheet.
Write a similar rule as above. The key here is the use of Time Valuation Result ->Booking date as validating object which serve the purpose of this scenario.
Create a message definition according your requirement.
Go to Object Definition and choose object EmployeeTimeSheet. Add this rule on Save Rules.
Role: Employee: Enters data on 30th September
Role: Employee: Enters data on 1st October
Hope this helps !!