Daily Closing Policy
Campos
Daily Closing Policy
Configurable closing policy at tenant, org-unit, role, or user scope.Defines reminder trigger, guards, notes requirement, and overdue escalation behaviour.
enabled
effectiveFrom
YYYY-MM-DD — missed closings are only counted from this day on. Overrides the policy creation date. Null = fall back to creation date.
reminder
triggers
Ordered priority list — first match wins
fixedTime
HH:MM tenant-local time, required when triggers contains fixed_time
minHoursForClockOutTrigger
Minutes — minimum logged work-shift time before clock_out_min_hours fires
inactivityMinutes
channels
guards
hardBlock
DEPRECATED (ADR 0478) — accepted for backwards compatibility, no longer read. Every failing block/warn guard is overridable with a written reason.
overdueEscalation
teamLeadThreshold
teamLeadCooldownDays
missingClosingSignals
Signals at the top-bar date while daily closings are missing (badge, red date, pulse, popup), each from its own number of open days. Missing = all off.
todayCountsFrom
When the current day counts as open: never (past days only), clock_out (worked and no shift open any more), fixed_time (from todayFixedTime, when worked today).
neverclock_outfixed_timetodayFixedTime
HH:MM tenant-local time, required when todayCountsFrom is fixed_time
badge
minOpenDays
The signal shows from this many open days on (today included when it counts).
redDate
minOpenDays
The signal shows from this many open days on (today included when it counts).
pulse
minOpenDays
The signal shows from this many open days on (today included when it counts).
popup
minOpenDays
The signal shows from this many open days on (today included when it counts).
repeatMinutes
Show the popup again this many minutes after "later"; null = once per day and device.
missingClosingLocks
Escalating locks while daily closings are missing (ADR 1179): insistent popup, no new time capture, read-only, full lock — each from its own number of open past days. Missing = all off; the emergency unlock stays available unless explicitly disabled.
insistentPopup
minOpenDays
The level applies from this many open PAST days on; today never counts.
snoozeMinutes
"Later" (with a reason) postpones the popup this many minutes; null = the popup repeat interval of missingClosingSignals, else 30.
noNewTime
minOpenDays
The level applies from this many open PAST days on; today never counts.
readOnly
minOpenDays
The level applies from this many open PAST days on; today never counts.
fullLock
minOpenDays
The level applies from this many open PAST days on; today never counts.
emergencyUnlock
minutes
Duration of one self-service emergency unlock (default 60).
maxPer7Days
Emergency unlocks allowed per rolling 7 days (default 3).
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/daily_closing_policies— Lista, paginada y filtrableGET /api/v1/daily_closing_policies/<id>— Una entidadPOST /api/v1/daily_closing_policies— CrearPATCH /api/v1/daily_closing_policies/<id>— Actualización parcialDELETE /api/v1/daily_closing_policies/<id>— Eliminación lógicaGET /api/v1/daily_closing_policies/<id>/timeline— Auditoría y actividades