Actions
Feature #24346
openMy page - Spent time: add predefined parameter "This week"
Status:
New
Priority:
Normal
Assignee:
-
Category:
My page
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
Inspired by #8761.
Could you also add a predefined parameter "This week" which actually looks like
where("#{TimeEntry.table_name}.user_id = ? \ AND #{TimeEntry.table_name}.spent_on \ BETWEEN ? AND ?", User.current.id, \ Date.today - (Date.today.cwday - 1) % 7, \ Date.today - (Date.today.cwday - 1) % 7 + 6).
This is important for employees who have to register defined amount of hours on weekly basis and it's useful to see amount of time that you spent/registered during current week instead of "last n days" that may include days from previous week and current week.
Related issues
Updated by Toshi MARUYAMA about 8 years ago
- Related to Feature #8761: My page - Spent time section only display 7 days, make it a parameter added
Updated by Go MAEDA almost 8 years ago
- Has duplicate Patch #6546: "Spent time" block for current week on "My page" added
Actions