well, maybe I was not clear enough but the bug only occurs when you create a timesheet on Monday! You created a timesheet on Wednesday and then it works as expected.
The reason for this is that the relativedelta in the code selects the first Monday from today() a week ago. On a Monday, the result is Monday last week. On a Wednesday, the result is last Monday.
Hi Amit,
well, maybe I was not clear enough but the bug only occurs when you create a timesheet on Monday! You created a timesheet on Wednesday and then it works as expected.
The reason for this is that the relativedelta in the code selects the first Monday from today() a week ago. On a Monday, the result is Monday last week. On a Wednesday, the result is last Monday.
Cheers,
Stefan.