How to prevent user from submitting year 2022 time cards?

YummyAmericano
Tera Contributor

Hi Community, 

Is there a way to lock down people from entering time card for 2022? Please advise, thank you very much.

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

You can try a business rule like this

Mike_R_0-1673038504651.png

Mike_R_1-1673038516210.png

 

 

 

View solution in original post

4 REPLIES 4

Mike_R
Kilo Patron
Kilo Patron

You can try a business rule like this

Mike_R_0-1673038504651.png

Mike_R_1-1673038516210.png

 

 

 

Thanks for the solution. I tested the solution you provided. It works if the user has not add the task to the time sheet yet. If the user has not add the task to the time sheet yet then the user will see the message which is great. 

KC10_1-1673039663570.png

 


However, if the user already add the task in the time sheet from last year and has not submit the time sheet yet, the user is still able to submit the time sheet for last year. 

KC10_0-1673039606360.png


So to solve the second issue, I checked the 'Update' box as well. This way it covers both use-cases. 
Thank you so much for this business rule logic, you saved my day.

Hi @YummyAmericano ,

It would work fine now. But are you planning to change the BR after this year? In future it would create issues. When it is 2024, users will not be able to submit the timecards for first week of 2024. Have you thought about it?

 

Thanks,

Talya

Hi @Talya, yes we have thought about this. we set a reminder to visit this BR once a year before the end on the year and determine the last day of the time sheet we want to include in the submission. Therefore, we replaced the condition operator from 'Last Year' to 'at or before'.