Repository navigation
Conversation
A week off or holiday someone worked on looked exactly like one nobody worked on in the day-wise grid (WO or H): the calendar shows the day's overtime badge, but the grid lost it. Such a day is now an "OT" chip in the Present colour, its tooltip saying Week Off Overtime or Holiday Overtime (and Pending Approval while it is), with a legend entry. The code is translatable (context "summary code"). Counts are unchanged; with tests.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the Monthly Attendance Summary's day-wise view, a week off or holiday someone worked on looks exactly like one nobody worked on (a purple "WO" or teal "H" chip). The calendar shows such a day's overtime badge, but the grid drops it, so you can't see from the grid who came in on a Saturday or a bank holiday.
Fix
pgettext("summary code", "OT")).Tests
attendance/tests/test_daily_worked_day_off.py(4 tests): an unworked week off isn't marked; a worked week off shows OT with its tooltip and class; a holiday keeps "H" until someone works on it; pending approval is named.Checklist
dev/v2.0, not2.0.Related issues
None.