mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
Comp/Flex days (#1074) — complete. A second leave type that does not deduct from the vacation entitlement (flextime / overtime offset). New kind column on vacay_entries, excluded from usedDays via a CASE sum; toggleEntry carries kind through service/nest/store with change-detection; desktop and mobile get a comp toolbar toggle next to the half-day one (orthogonal, so a half comp day is free); comp segments render as a diagonal hatch of the person colour, per-segment for split days (Version B). comp_used is surfaced separately in getStats. Translated into all 23 locales. Configurable vacation year (#737) — backend only. Per-user vacay_user_settings (calendar / fiscal / anniversary), resolveYearWindow, and usedDays / compUsedDays / getStats / carry-over now computed over the leave-year [start,end) window. 'calendar' resolves byte-identically to the old date-prefix behaviour, so nothing changes for existing users and the feature is inert until the settings UI lands. Frontend (settings selector + calendar window rollover), the settings endpoint, window-aware getEntries and holiday loading are still to do — see the PR description.
This commit is contained in:
@@ -30,6 +30,9 @@ const vacay: TranslationStrings = {
|
||||
'vacay.modeHalf': '半休',
|
||||
'vacay.modeHalfHint': '半休を登録',
|
||||
'vacay.fullDay': '全休',
|
||||
'vacay.modeComp': '代休・フレックス',
|
||||
'vacay.modeCompHint': '代休・フレックス日を登録(休暇消費なし)',
|
||||
'vacay.compHalf': '半代休',
|
||||
'vacay.entitlement': '付与日数',
|
||||
'vacay.entitlementDays': '日',
|
||||
'vacay.used': '使用済み',
|
||||
|
||||
Reference in New Issue
Block a user