Vote #77976
未完了My page - Spent time: add predefined parameter "This week"
0%
説明
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.
journals
--------------------------------------------------------------------------------
!http://www.redmine.org/attachments/download/17017/rm_this_week.png!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,8761,My page - Spent time section only display 7 days, make it a parameter
duplicates,Closed,6546,"Spent time" block for current week on "My page"