diff --git a/.env.prod.example b/.env.prod.example index e94c3e4..6bf147a 100644 --- a/.env.prod.example +++ b/.env.prod.example @@ -3,11 +3,11 @@ # Pin deployments to an immutable OpenClockwork release. Do not use `latest` # for production upgrades. -OPENCLOCKWORK_VERSION=2.3.0 +OPENCLOCKWORK_VERSION=2.4.0 # Optional full image references for a registry mirror or pinned digests. # Use matching releases for the API and web images. -# OPENCLOCKWORK_API_IMAGE=registry.example.com/openclockwork-api:2.3.0 -# OPENCLOCKWORK_WEB_IMAGE=registry.example.com/openclockwork-web:2.3.0 +# OPENCLOCKWORK_API_IMAGE=registry.example.com/openclockwork-api:2.4.0 +# OPENCLOCKWORK_WEB_IMAGE=registry.example.com/openclockwork-web:2.4.0 # Keep these names unchanged across upgrades. OPENCLOCKWORK_DB_VOLUME=openclockwork-db-data-prod OPENCLOCKWORK_ATTACHMENTS_VOLUME=openclockwork-attachments-prod diff --git a/FEATURES.md b/FEATURES.md index 348641a..adcce1a 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -1,13 +1,15 @@ # OpenClockwork Features -OpenClockwork 2.3.0 provides **Solo** personal work tracking and **Team** time and +OpenClockwork 2.4.0 provides **Solo** personal work tracking and **Team** time and attendance in one responsive, self-hosted application. Both keep deployment, data, and configuration under the operator's control, with German and English UI. -In Team mode, employees can start and end breaks at enabled QR and PIN -terminals. Employees can see the recorded and assessed times. HR and responsible -managers can review flagged punches. HR can also require terminal booking per -employee. See the [release notes](RELEASE_NOTES.md#openclockwork-v230) and +In Team mode, enabled PIN terminals offer project activity selection and +switching during a shift. HR can opt into scheduled workday accounting for +fixed daytime schedules. Credit starts at the later of clock-in and scheduled +start. The calculation deducts a break once per eligible workday and shows +time after the scheduled end separately. +See the [release notes](RELEASE_NOTES.md#openclockwork-v240) and [upgrade guide](UPGRADING.md).

@@ -28,7 +30,7 @@ employee. See the [release notes](RELEASE_NOTES.md#openclockwork-v230) and | Employees | Clock in/out, record terminal breaks, book permitted daily targets, manage requests and absences, and view time accounts | | Managers | Review team requests, booking corrections and flagged punches, use bulk actions, and inspect project data | | HR administrators | Manage employees, booking permissions, schedules, leave, projects, reports, terminal methods, PINs, and authentication audits | -| Kiosk devices | Pair once, offer QR or PIN, confirm clock-in/out and breaks, clear personal data, and use least-privilege device credentials | +| Kiosk devices | Pair once, offer QR or PIN, confirm attendance and breaks, offer optional PIN activity selection, and clear personal data | | Integrations | Consume documented REST endpoints, generated types, realtime events, ERP exports, and health checks | Employee, manager, HR, kiosk, and ERP capabilities in the table refer to Team. @@ -65,7 +67,7 @@ different customer; create a new project instead. ## Safe operating-mode changes -An upgrade retains Team mode. A subsequent mode preview checks blockers without +An upgrade retains the installation's mode. A mode preview checks blockers without changing configuration; confirmation repeats the checks transactionally. Entering Solo requires one remaining active administrator, no running timers, no unresolved requests/time approvals, and no active terminals. Entering Team @@ -136,6 +138,7 @@ device never acts as an employee and cannot call normal HR or time-entry APIs. | HR PIN management | Generate a random PIN shown once, reset, disable, and unlock; no employee password reuse | | Shared-screen privacy | Minimal confirmation identity, no employee session, and cleanup after completion, cancellation, inactivity, or background changes | | Booking confirmation | Confirm the selected PIN action after identification; retry an uncertain response without duplicating the booking | +| PIN activity selection | Select a project and activity when clocking in, switch during a shift, or remember a choice for the next eligible PIN clock-in | | Authentication audit | HR-filtered events, restricted runtime role, signed chain, and independent-anchor export/verification tooling | | Durable audit trail | Historical bookings retain terminal/GPS evidence snapshots even when kiosk-only records are removed | @@ -155,6 +158,13 @@ action on the tablet after PIN identification. **Booking** shows the recorded an assessed times under **Terminal punches**. See the [terminal break guide](docs/TERMINAL_AUTH_OPERATIONS.de.md#gestempelte-pausen-und-zeitraster). +HR enables activity selection per PIN terminal. Eligible projects are active, +assigned to the employee, have an active activity and no service orders, and +have an active customer or no customer. The kiosk shows projects before their +activities. Clock-out remains directly available. Switching during an open +shift closes the previous segment and opens the new one at the same instant. +See [PIN terminal activity setup](docs/TEAM_MODE.md#project-activities-at-pin-terminals). + The local iPad pilot includes a trusted-HTTPS Compose overlay, generated test CA/server certificates, loopback-only raw service ports, an Nginx TLS gateway, Guided Access guidance, a site acceptance checklist, and MDM recommendations. @@ -171,8 +181,8 @@ See [the German iPad setup guide](docs/IPAD_TERMINAL_SETUP.de.md). | Direct daily-target block | Book the contractual daily target as one approved block when HR enables both direct web and daily-block booking | | Core-time violation details | Date, affected core window, violation type, boundary, and uncovered minutes | | Project and service-order booking | Book only to assigned active projects; active service orders become the required booking level | -| Activity per booking | Store a customer-facing description of the work performed | -| Retroactive booking changes | Change project/service-order/activity on completed and approved entries | +| Activity per booking | Store a customer-facing description or select a catalogue activity at an enabled PIN terminal | +| Retroactive booking changes | Change the allocation and catalogue activity or free text on completed and approved entries | | Entry splitting | Split a closed entry at a chosen time when work changes between projects | | Retroactive range booking | Assign a past interval to a project; coverage is validated and existing entries are split as required | | Automatic break accounting | Configurable schedule thresholds and deductions; no automatic deduction for new schedules by default | @@ -246,7 +256,7 @@ reason for the review, and the original punches remain visible. | Employee management | Manage employee records, assign managers, reset passwords, and set direct web and daily-block controls | | Roles | Employee, Manager, and HRAdmin access levels with role-aware navigation and endpoint guards | | Time models | Full-time, part-time, trust-based working time, and flextime | -| Work schedules | Working-day masks, permitted frames, core-time windows, and optional terminal time and break rules | +| Work schedules | Working-day masks, permitted frames, core-time windows, optional stamped breaks or scheduled workdays | | Schedule assignment | Assign individual schedules or bulk-assign by time model | | Leave allowances | Base leave, carry-over, adjustments, expiry dates, and adjustment reasons | | Holiday calendars | Optional regional presets and custom dates used in target hours and vacation calculations | @@ -272,11 +282,14 @@ bookings, and customer-facing activity reports in one administrative workflow. - Project number, title, description, lifecycle, and optional PLAN hours - Employee-by-project assignment matrix controlling booking eligibility -- Active/inactive service orders with their own PLAN hours +- Active/inactive service orders with their own PLAN hours, or a project + activity catalogue with named activities that can be activated or deactivated +- Protection against deleting activities referenced by time entries - PLAN/IST progress indicators at project and service-order level - Protection against deleting referenced projects or service orders - Detailed evaluations filtered by period, employee, project, and order -- Customer-facing activity report and CSV export +- Customer-facing activity report and CSV export showing catalogue activity + names or free-text descriptions and the time segments booked to the project - Project-independent HR working-time report for all closed, non-rejected entries - Week, month or custom comparison of recorded provisional net time with the target from HR-confirmed contract periods. The report includes employees @@ -307,6 +320,9 @@ remain responsible for validating their organisation's exact policies. - Configurable break calculation with explicit thresholds and deduction minutes - Optional terminal rules for assessed starts and stamped breaks +- Optional scheduled workdays for fixed daytime schedules, with prospective + policy versions, credited gross time, one daily automatic break deduction, + and a separate after-scheduled-end duration in the working-time table and CSV - Target/actual accounting derived from weekly hours and working-day masks - Opening overtime balances and employee start dates - Configurable working frames and multiple core-time windows @@ -384,7 +400,9 @@ The generated and committed OpenAPI specification lives at review for responsible managers and HR - HR terminal/device lifecycle endpoints and least-privilege kiosk endpoints - HR PIN reset/disable/unlock and paginated authentication audit; device-only - challenge, PIN identification, and explicit booking endpoints + challenge, PIN identification, project/activity options, and explicit booking + and activity-selection endpoints +- Project activity-catalogue management and eligible activity lookup - Per-employee direct web booking permission, plus daily-target eligibility and block creation - Paginated ERP time-entry exports with project, service-order, and activity diff --git a/README.md b/README.md index 6672efe..f1a7cc3 100644 --- a/README.md +++ b/README.md @@ -14,19 +14,18 @@ Latest GitHub release

-OpenClockwork 2.3.0 provides two operating modes in one open-source application. +OpenClockwork 2.4.0 provides two operating modes in one open-source application. **Solo** helps an independent professional track personal work, organise customer projects, and produce timesheets without inventing an HR department. **Team** supports employee attendance, work schedules, leave, approvals, and tablet terminals. Both use the same self-hosted PostgreSQL, API, and responsive PWA. -**New in 2.3.0.** Team employees can start and end breaks at QR and PIN -terminals when their work schedule enables break stamping. HR and responsible -managers can review flagged cases with both the original punches and the -schedule-assessed times. HR can also require terminal booking per employee by -turning off direct browser and PWA clock-in, clock-out, and daily blocks. Saving -a terminal closes the setup editor, including on first activation. See the -[2.3.0 release notes](RELEASE_NOTES.md#openclockwork-v230). +**New in 2.4.0.** Team employees can choose a project activity when clocking in +at an enabled PIN terminal and switch activities during a shift. HR can also +configure a scheduled workday that preserves the original punches and starts +credit at the later of clock-in and scheduled start. It applies a daily break +deduction and shows time after the scheduled end separately in the working-time +table and CSV. See the [2.4.0 release notes](RELEASE_NOTES.md#openclockwork-v240). The interface is available in German and English on phones, tablets, and desktops. Language is independent of working-time rules: targets, breaks, @@ -40,14 +39,14 @@ remain on the [roadmap](ROADMAP.md). ## Choose your mode -| | Solo | Team | -| --------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------- | -| Best fit | One person tracking their own work | An organisation managing multiple people | -| Daily workflow | Timer, manual entries, direct corrections, personal calendar | Employee bookings, requests, manager/HR workflows | -| Work rules | Optional targets, leave account, breaks, and personal hints | Employee contracts, schedules, leave allowances, and approvals | -| Customer work | Customers, projects/orders, billable classification, personal timesheets | Assigned projects/orders, PLAN/IST reports, HR working-time reports | -| Shared terminal | Not available in Solo | Paired QR/PIN terminals with optional break stamping and geofencing | -| Start here | [Solo guide](docs/SOLO_MODE.md) | [Team guide](docs/TEAM_MODE.md) | +| | Solo | Team | +| --------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------- | +| Best fit | One person tracking their own work | An organisation managing multiple people | +| Daily workflow | Timer, manual entries, direct corrections, personal calendar | Employee bookings, requests, manager/HR workflows | +| Work rules | Optional targets, leave account, breaks, and personal hints | Employee contracts, schedules, leave allowances, and approvals | +| Customer work | Customers, projects/orders, billable classification, personal timesheets | Assigned projects with service orders or activities, PLAN/IST and HR reports | +| Shared terminal | Not available in Solo | Paired QR/PIN terminals with optional break stamping and PIN activity selection | +| Start here | [Solo guide](docs/SOLO_MODE.md) | [Team guide](docs/TEAM_MODE.md) | Read [Operating modes](docs/OPERATING_MODES.md) for boundaries and safe transitions. Solo is not a separate account tier or a license restriction; it @@ -84,9 +83,9 @@ Solo customer-management and billable-timesheet UI. - **Optional geofencing.** A terminal can work entirely without GPS or require a fresh employee position inside a server-validated radius with a configured accuracy limit. -- **Configurable working-time rules.** Break deduction, working frames, core - hours, target/actual balances, public holidays, and leave calculations live in - tested backend/shared-domain code. +- **Configurable working-time rules.** Set working frames, core hours, + holidays, leave, and break policies. Team schedules can use either stamped + terminal breaks or a scheduled-workday calculation with a daily deduction. - **Team approval workflows.** Employees can revise returned requests and request corrections to specific bookings. Out-of-frame bookings go through manager and HR approval. Leave workflows include substitute confirmation, @@ -94,10 +93,11 @@ Solo customer-management and billable-timesheet UI. - **Team cockpit.** Managers see current direct reports. HR can view the organisation. Both can review booking and correction approvals and take authorised, recorded actions on behalf of employees. -- **Projects and reporting.** Assign employees, structure projects by service - order, compare PLAN and IST hours, edit booking targets, split entries, and - export customer or working-time reports as CSV. HR can download working-time - PDFs for one, selected, or all employees, with a separate section per person. +- **Projects and reporting.** Assign employees, structure projects with + service orders or an activity catalogue, compare PLAN and IST hours, edit + booking targets, split entries, and export customer or working-time reports + as CSV. HR can download working-time PDFs for one, selected, or all + employees, with a separate section per person. Working-time reports compare net recorded hours with targets based on HR-confirmed contract periods. Clock-in/out locations are optional in HR tables and CSV and excluded from PDFs. @@ -150,6 +150,13 @@ view shows the original punches alongside the assessed times. HR and responsible managers can review flagged bookings in **Working times**. See the [break-stamping setup](docs/TERMINAL_AUTH_OPERATIONS.de.md#gestempelte-pausen-und-zeitraster). +On a PIN-enabled terminal, HR can turn on **Allow activity selection at this +terminal**. After PIN identification, employees can choose an assigned project +and one of its active activities when clocking in, or switch an open booking to +a different activity. They can also clock in without an activity or clock out +directly. Project reports show the resulting activity segments. See the +[Team setup guide](docs/TEAM_MODE.md#project-activities-at-pin-terminals). + In **Employees**, HR can clear **Allow direct web time booking** to require terminal booking. This turns off direct clock-in, clock-out, and daily blocks in the browser and installed PWA. Employees can still use the dashboard, @@ -210,10 +217,10 @@ by default. HR administrators must explicitly include them in the on-screen report and CSV export; operators remain responsible for a lawful purpose, appropriate access, and retention periods for this personal data. -Upgrading from 2.2.2 to 2.3.0 requires a PostgreSQL and attachment backup, -two additive database migrations, and 2.3.0 images for both API and web. Read the -[2.3.0 upgrade notes](RELEASE_NOTES.md#upgrading-from-222) and follow the -[upgrade procedure](UPGRADING.md#1-prepare-and-back-up). +Upgrading from 2.3.0 to 2.4.0 requires a PostgreSQL and attachment backup, +three forward database migrations, and matching 2.4.0 API and web images. Keep +the PIN overlay in use where configured so its migration job reapplies runtime +grants. Follow the [2.4.0 upgrade procedure](UPGRADING.md#required-for-240). The PWA is online-first. A running timer remains server state while a device is offline; new writes require server confirmation and are not queued as offline @@ -397,7 +404,7 @@ openssl rand -hex 32 Open `.env.prod` in an editor and replace every `change-me` value: -- Set `OPENCLOCKWORK_VERSION=2.3.0` for this release. Use the same explicit +- Set `OPENCLOCKWORK_VERSION=2.4.0` for this release. Use the same explicit version for the API and web images; never deploy `latest`. - Put the first command's output into `POSTGRES_PASSWORD` and replace `change-me-database-password` inside `DATABASE_URL` with that exact same @@ -569,7 +576,7 @@ You can support the project through - [Roadmap: planned RFID, billing, and coding-agent usage](ROADMAP.md) - [iPad terminal setup and operations (German)](docs/IPAD_TERMINAL_SETUP.de.md) - [PIN and authentication audit operations (German)](docs/TERMINAL_AUTH_OPERATIONS.de.md) -- [2.3.0 release notes](RELEASE_NOTES.md#openclockwork-v230) +- [2.4.0 release notes](RELEASE_NOTES.md#openclockwork-v240) - [Upgrade procedure](UPGRADING.md) - [Release process](RELEASING.md) - [Host-independent Docker and container operations](docs/CONTAINER_DEPLOYMENT.md) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5ab9e85..8b8138c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,63 @@ +# OpenClockwork v2.4.0 + +## Project activities at PIN terminals + +- Team managers and HR can create a catalog of activities, rename or + deactivate them, and delete activities with no bookings. Each project can + use a catalog or service orders. Authorised users can also allocate an + existing Team booking to a catalog activity in the web app. [PR #60](https://github.com/patrickschiller/openclockwork/pull/60) +- HR can enable activity selection per PIN terminal. After identifying, + employees can choose an activity from an assigned project's catalog. They + can apply it when they confirm clock-in, remember a choice for later, or + switch activities during a running booking. The kiosk suggests the last + eligible choice. +- A switch closes one project segment and opens the next within the same + attendance booking. Breaks are calculated across the complete booking. + Project reports show the catalog activity, and ERP exports retain the + separate free-text activity description. + +## Scheduled workday accounting in Team mode + +- HR can opt fixed daytime schedules into scheduled workday calculation. + Early clock-ins remain recorded, and credited time starts at the later of + the scheduled start and the employee's actual clock-in. Employees clock + out themselves. Time after the scheduled end is credited and shown + separately. [PR #68](https://github.com/patrickschiller/openclockwork/pull/68) +- The calculation applies one configured break deduction across the day's + eligible bookings. Changes to this calculation take effect the next local + day and preserve the rules used for earlier dates. Choose either this + calculation or terminal break stamping per schedule. +- The time account and working-time comparison include the calculated net + time. The **Working Times** table and CSV show credited gross time and + time after the scheduled end. The PDF uses its booking-day calculation. + [Team mode guide](https://github.com/patrickschiller/openclockwork/blob/v2.4.0/docs/TEAM_MODE.md#scheduled-workday-calculation) + +## Other changes + +- Updated the attribution in Settings and administration. [PR #67](https://github.com/patrickschiller/openclockwork/pull/67) +- Refreshed the documentation for terminal breaks and booking permissions. + [PR #62](https://github.com/patrickschiller/openclockwork/pull/62) +- Removed the retired standalone Solo test stack. Use the shared Compose + test stack for Solo and Team. [PR #63](https://github.com/patrickschiller/openclockwork/pull/63) + +## Upgrading from 2.3.0 + +- Back up PostgreSQL and attachments, then apply the three forward migrations + for project activity catalogs, PIN activity selection and scheduled workday + policies. For PIN deployments, keep the existing Compose overlay so its + migration service reapplies runtime database grants. +- Deploy matching 2.4.0 API and web images and reopen browser, PWA and kiosk + tabs. Activity selection and scheduled workday calculation are opt-in. + [Upgrade guide](https://github.com/patrickschiller/openclockwork/blob/v2.4.0/UPGRADING.md#required-for-240) +- API clients can use the updated contract for activity catalogs, PIN + selection, booking allocation and working-time report fields. + [OpenAPI contract](https://github.com/patrickschiller/openclockwork/blob/v2.4.0/apps/api/openapi.json) + +## Docker images + +- `ghcr.io/patrickschiller/openclockwork-api:2.4.0` +- `ghcr.io/patrickschiller/openclockwork-web:2.4.0` + # OpenClockwork v2.3.0 ## Terminal booking in Team mode diff --git a/RELEASING.md b/RELEASING.md index cd009e6..f733014 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -25,14 +25,14 @@ public-contract impact. Use matching metadata in five places: 5. Run `RELEASE_TAG=vMAJOR.MINOR.PATCH pnpm release:verify-tag` and the full CI suite. -For 2.2.1, verify the five Team changes together. Exercise resubmission of a -returned draft, manager/HR approval of outside-frame bookings, correction of a -specific booking, contractual target/actual reporting, and the Team cockpit. -Check that a filled 2.2.0 database upgrades through all four migrations and -preserves existing records, approvals, attachments and effective rules. The -upgrade should leave unconfirmed contract facts unknown and start proxy audit -history only with newly recorded actions. Use synthetic data for all public -examples and test fixtures. +For 2.4.0, exercise project and activity selection and switching at a PIN +terminal, including a recorded break, and verify the resulting segments in the +working-time and customer exports. Verify that an explicitly configured scheduled +workday preserves early punches, applies the daily break once, and reports +time after the scheduled end separately. Upgrade a populated 2.3.0 test +database through all three migrations and verify that existing projects, time +entries, approvals and schedules retain their previous behavior. Use synthetic +data for public examples and test fixtures. ## Publish @@ -42,15 +42,15 @@ annotated tag on the exact merge commit and push it: ```bash git switch main git pull --ff-only -git tag -a v2.2.1 -m "OpenClockwork v2.2.1" -git push origin v2.2.1 +git tag -a v2.4.0 -m "OpenClockwork v2.4.0" +git push origin v2.4.0 ``` The release workflow verifies the tag and notes, runs Nx and API end-to-end tests, publishes the API and web images to GHCR, and finally creates a GitHub Release. Only the current section of `RELEASE_NOTES.md` is published; historical -release notes remain in the repository. GitHub's generated changelog is appended to the curated notes using -the categories in `.github/release.yml`. +release notes remain in the repository. GitHub appends a generated changelog +using the categories in `.github/release.yml`. For the first publication of each GHCR package, verify its visibility is **Public** in the GitHub package settings. Public container images can then be @@ -59,8 +59,8 @@ pulled anonymously by self-hosted installations. ## Verify the published release ```bash -docker pull ghcr.io/patrickschiller/openclockwork-api:2.2.1 -docker pull ghcr.io/patrickschiller/openclockwork-web:2.2.1 +docker pull ghcr.io/patrickschiller/openclockwork-api:2.4.0 +docker pull ghcr.io/patrickschiller/openclockwork-web:2.4.0 ``` Confirm that the GitHub Release is marked latest, contains the curated upgrade diff --git a/ROADMAP.md b/ROADMAP.md index 60c4886..a094d5e 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,8 +1,8 @@ # OpenClockwork Roadmap OpenClockwork is a public, Apache-2.0 self-hosted application for personal work -and Team time and attendance. Version **2.3.0** adds optional break stamping at -QR and PIN terminals and lets HR require terminal attendance booking per employee. +and Team time and attendance. Version **2.4.0** adds project activity selection +at PIN terminals and optional scheduled workday accounting for Team schedules. [Release notes](RELEASE_NOTES.md) The roadmap describes planned scope and dependencies. See @@ -16,7 +16,7 @@ The roadmap describes planned scope and dependencies. See | ----- | -------------------------------------------------- | -------------------------------- | | 1 | Country-neutral configuration and defaults | Released in 1.4.0 | | 2 | Personal Solo workflow alongside Team | Released in 2.0.0 | -| 3 | Team terminals, approvals and working-time reports | Released across 2.1.0–2.3.0 | +| 3 | Team terminals, approvals and working-time reports | Released across 2.1.0–2.4.0 | | 4 | Optional RFID terminal extension | Planned independently of billing | | 5 | Customer billing and invoice creation | Planned for Solo and Team | | 6 | CAUR usage import, attribution, and review | Can progress alongside stage 5 | @@ -127,13 +127,18 @@ Remaining internationalisation work: out and can access the dashboard, history and requests. The default allows direct web booking. [Discussion #54](https://github.com/patrickschiller/openclockwork/discussions/54) -## Proposed project activity capture at PIN terminals - -An open pull request proposes a per-project activity catalogue and optional -activity selection and switching at PIN terminals. It also proposes including -selected activities in customer reports and CSV exports. The public discussion -separately raises quantity tracking. [PR #60](https://github.com/patrickschiller/openclockwork/pull/60), -[Discussion #39](https://github.com/patrickschiller/openclockwork/discussions/39) +### PIN activities and scheduled workdays in 2.4.0 + +- HR can create a project activity catalogue and enable activity selection at a + PIN terminal. Employees can choose an assigned project and activity when + clocking in or switch during a shift. Customer reports and CSV exports show + the resulting activity segments. [PR #60](https://github.com/patrickschiller/openclockwork/pull/60) +- Team schedules can opt into a fixed scheduled workday. The calculation + preserves punches, starts credit at the later of clock-in and scheduled start, + applies a daily automatic break deduction, and reports time after the + scheduled end in the working-time table and CSV. [PR #68](https://github.com/patrickschiller/openclockwork/pull/68) +- The project activity discussion also covers quantity tracking. + [Discussion #39](https://github.com/patrickschiller/openclockwork/discussions/39) ## 4. Optional RFID terminal extension diff --git a/UPGRADING.md b/UPGRADING.md index c0bb713..d1b86ee 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -27,6 +27,67 @@ Compose from managing their deletion, but this does not protect against manual volume removal, pruning unused volumes, Docker data loss or host failure. Do not replace a populated installation's volume with a new name during an upgrade. +## Required for 2.4.0 + +From 2.3.0, pause writers, back up PostgreSQL and attachments, and follow the +[deployment procedure](#1-prepare-and-back-up) with matching 2.4.0 API and web +images. Keep the installation's operating mode, volumes, working timezone, +and credentials. The new features use the existing configuration and secrets. +If you are skipping releases, read the requirements below and the +[release notes](RELEASE_NOTES.md) for all intervening versions. + +### Three forward migrations from 2.3.0 + +| Migration | Effect | +| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `20261127235453_terminal_activity_catalog` | Adds project activity catalogues, an optional activity reference on time entries, the employee's last selected terminal activity, and a per-terminal opt-in. | +| `20261128021500_terminal_activity_redemption` | Extends the existing challenge and booking grant constraints to record activity choices alongside attendance and break actions. | +| `20261203220000_scheduled_workday_accounting` | Adds the optional scheduled workday rule and effective-dated per-employee policy versions. | + +Production deployment applies pending migrations through +`prisma migrate deploy`. Keep the PIN overlay where configured so its +migration job reapplies runtime grants after the schema changes. If you manage +database roles yourself, grant access to new application tables using the +[PIN operations procedure](docs/TERMINAL_AUTH_OPERATIONS.de.md#datenbankrechte-und-audit). +Existing installations continue with their current schedule calculations and +PIN terminal activity selection starts disabled. Existing free-text activity +descriptions remain usable. + +### Check the upgrade and enable features as needed + +- Check a historical time entry, an existing schedule and its applicable + breaks, employee time accounts, and an export. Verify that mode and terminal + pairing still match the pre-upgrade installation. +- To use project activities, first create a catalogue on an eligible assigned + project, then enable activity selection on a PIN terminal. Test clock-in, + a switch between activities, and clock-out. Check the segments under + **Working times** and the project report and CSV. + [PIN activity setup](docs/TEAM_MODE.md#project-activities-at-pin-terminals) +- To use scheduled workdays, configure a fixed daytime schedule with + **Calculate scheduled workdays**. Effective-dated changes apply from the next + calendar day in the working timezone. Test early clock-in, gaps between + bookings, one daily automatic deduction, and work after the scheduled end. + Check the employee time account, HR target/actual comparison, and the + additional working-time table and CSV fields. The PDF retains its own + calculation. [Scheduled workday setup](docs/TEAM_MODE.md#scheduled-workday-calculation) + +For a rollback after applying the 2.4.0 migrations, follow the +[restore procedure](#rollback) with the matching pre-upgrade database, +attachments, and application images. + +## Required for 2.3.0 + +Upgrading from 2.2.2 applies two forward migrations: + +| Migration | Effect | +| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | +| `20261125210000_terminal_break_stamping` | Adds optional terminal break rules and capture, original punches and assessed times. | +| `20261128010000_employee_web_time_booking` | Adds the per-employee direct web booking permission. It defaults to enabled for existing and new employees. | + +Keep both migrations when upgrading to a later release. Preserve the existing +terminal setup and PIN overlay where used. Verify existing QR/PIN terminal +actions and any enabled break schedule. See the [2.3.0 release notes](RELEASE_NOTES.md#openclockwork-v230). + ## Required for 2.2.1 Take a consistent backup and deploy matching 2.2.1 API and web images. Preserve @@ -35,12 +96,12 @@ timezone. Follow each applicable section below when skipping an older release. ### Four forward migrations -| Migration | Effect | -| --- | --- | +| Migration | Effect | +| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `20261107031000_time_entry_frame_approval` | Adds nullable review markers. Existing pending Team bookings outside their permitted frame start at the manager stage. Existing final approvals and their history are preserved. | -| `20261107040000_targeted_time_corrections` | Adds optional links between a correction request, the booking it targets and the resulting audit event. Existing requests for missing bookings retain their original behaviour. | -| `20261107050000_employee_contract_periods` | Adds confirmed contract periods and their audit history. HR confirms the applicable facts for each period. A gap leaves the reported target and difference unknown. | -| `20261107060000_team_proxy_audit` | Adds auditable actions taken on behalf of an employee. The history starts with actions actually recorded by the upgraded application. | +| `20261107040000_targeted_time_corrections` | Adds optional links between a correction request, the booking it targets and the resulting audit event. Existing requests for missing bookings retain their original behaviour. | +| `20261107050000_employee_contract_periods` | Adds confirmed contract periods and their audit history. HR confirms the applicable facts for each period. A gap leaves the reported target and difference unknown. | +| `20261107060000_team_proxy_audit` | Adds auditable actions taken on behalf of an employee. The history starts with actions actually recorded by the upgraded application. | Follow the [deployment procedure](#1-prepare-and-back-up) below so `prisma migrate deploy` runs before the API serves requests. Retain every @@ -150,8 +211,8 @@ existing installations is recommended. From 2.0.0, this update adds no database migrations and requires no seed or reset. Keep the existing data, volumes, configuration and working timezone, take a consistent backup, and deploy matching API/web versions. These access changes -also apply when upgrading directly to 2.2.1. Follow the additional requirements -above and the deployment procedure below. +also apply when upgrading directly to a later release. Follow the additional +requirements above and the deployment procedure below. Custom API clients must handle `401` and `403` responses and the scoped `GET /api/employees` list. Use the authenticated `GET /api/employees/directory` @@ -456,8 +517,8 @@ opt-ins listed above. ## 2. Select and pull the release Set `OPENCLOCKWORK_VERSION` in `.env.prod` to the exact version from the GitHub -Release, **`2.2.1` for this upgrade**, only after preserving the old configuration -in the backup set. Pin matching API/web versions or verified digests. Do not use +Release, **`2.4.0` for this upgrade**, after preserving the old configuration in +the backup set. Pin matching API/web versions or verified digests. Do not use `latest`, a mutable `:local` image, or a source-build override for an unattended production upgrade. Keep the same PostgreSQL major version; a PostgreSQL major upgrade is a separate procedure, not an application-image update. @@ -483,9 +544,8 @@ migrations and runtime grants; the API waits for its successful completion. Prisma records applied migrations in `_prisma_migrations` and skips them on subsequent starts. Production startup never seeds or resets the database. If API/web are deployed independently, deploy the API first, wait for its -health endpoint to report `2.2.1`, then deploy the matching web image. The web -startup version check is not a promise of zero-downtime mixed-version operation; -keep additional writers paused until verification completes. +health endpoint to report the target version, then deploy the matching web +image. Keep additional writers paused until verification completes. Do not run any of the following during an upgrade: @@ -520,10 +580,10 @@ oc run --rm --no-deps -T migrate ./node_modules/.bin/prisma migrate status The PIN runtime role deliberately has no access to `_prisma_migrations`; do not broaden its permissions to run this maintenance check from the API container. -Confirm `2.2.1` through the public web/proxy health route as well as the -container check. Sign in and verify the actual deployed mode, a known employee, -an existing time entry, historic break totals, leave balances and configured -attachment storage. A 1.4.0 upgrade must still be Team unless an administrator +Confirm the target version through the public web/proxy health route as well as +the container check. Sign in and verify the actual deployed mode, a known +employee, an existing time entry, historic break totals, leave balances and +configured attachment storage. A 1.4.0 upgrade must still be Team unless an administrator has explicitly switched it. Reopen old PWA/browser tabs if they show a cached bundle, and verify that exports/printing work in the browsers you operate. diff --git a/apps/api/openapi.json b/apps/api/openapi.json index 9c13292..0feecdb 100644 --- a/apps/api/openapi.json +++ b/apps/api/openapi.json @@ -5473,7 +5473,7 @@ "info": { "title": "OpenClockwork API", "description": "Self-hostable working-time tracker — REST + WebSocket surface.", - "version": "2.3.0", + "version": "2.4.0", "contact": {} }, "tags": [], @@ -6294,7 +6294,7 @@ }, "version": { "type": "string", - "example": "2.3.0" + "example": "2.4.0" }, "utcTimestamp": { "type": "string", diff --git a/apps/api/src/app/health/health.controller.ts b/apps/api/src/app/health/health.controller.ts index ceee703..429bedf 100644 --- a/apps/api/src/app/health/health.controller.ts +++ b/apps/api/src/app/health/health.controller.ts @@ -9,7 +9,7 @@ export class HealthResponseDto { @ApiProperty({ example: 'openclockwork-api' }) service!: string; - @ApiProperty({ example: '2.3.0' }) + @ApiProperty({ example: '2.4.0' }) version!: string; @ApiProperty({ format: 'date-time' }) diff --git a/apps/api/src/generate-openapi.ts b/apps/api/src/generate-openapi.ts index 48fec39..5fde8c6 100644 --- a/apps/api/src/generate-openapi.ts +++ b/apps/api/src/generate-openapi.ts @@ -33,7 +33,7 @@ async function main() { .setDescription( 'Self-hostable working-time tracker — REST + WebSocket surface.', ) - .setVersion('2.3.0') + .setVersion('2.4.0') .addBearerAuth() .build(); const document = SwaggerModule.createDocument(app, config); diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index a3ca28b..89e72d7 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -38,7 +38,7 @@ async function bootstrap() { .setDescription( 'Self-hostable working-time tracker — REST + WebSocket surface.', ) - .setVersion('2.3.0') + .setVersion('2.4.0') .addBearerAuth() .build(); const document = SwaggerModule.createDocument(app, swaggerConfig); diff --git a/apps/web/src/api/generated.ts b/apps/web/src/api/generated.ts index 30fe85e..7c8d548 100644 --- a/apps/web/src/api/generated.ts +++ b/apps/web/src/api/generated.ts @@ -2190,7 +2190,7 @@ export interface components { status: string; /** @example openclockwork-api */ service: string; - /** @example 2.3.0 */ + /** @example 2.4.0 */ version: string; /** Format: date-time */ utcTimestamp: string; diff --git a/docs/OPERATING_MODES.md b/docs/OPERATING_MODES.md index 9b5045e..2b06964 100644 --- a/docs/OPERATING_MODES.md +++ b/docs/OPERATING_MODES.md @@ -1,22 +1,22 @@ # Operating modes: Solo and Team -OpenClockwork 2.2.1 offers two workflows on the same self-hosted installation. +OpenClockwork 2.4.0 offers two workflows on the same self-hosted installation. The mode is installation-wide, not a per-browser preference, billing plan, or separate database. Pick the workflow that matches who uses the application and who needs to make decisions about the recorded work. ## Choose a starting point -| Question | Solo | Team | -| ------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | -| Who records work? | One active owner | Employees with role-based access | -| Who corrects personal time? | The owner, directly, with reasons and audit history | Employee/manager/HR workflows according to Team rules | -| Must I set attendance targets? | No; targets, leave accounts, breaks, and hints are optional | Configure employee contracts, accounts, and schedules explicitly | -| Can I organise customer work? | Customers, projects, service orders, billable classification, personal timesheets | Assigned projects/orders and Team reports; no Solo customer/billable-report UI | -| Can I use a shared QR tablet? | No | Yes; optional location/geofence checks | -| Can I invite colleagues? | Switch to Team before adding another active person | HR creates employee accounts; email invitations are not implemented | -| Are invoices or agent usage included? | No | No | -| Which UI languages are available? | German and English | German and English, including kiosk routes | +| Question | Solo | Team | +| ------------------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| Who records work? | One active owner | Employees with role-based access | +| Who corrects personal time? | The owner, directly, with reasons and audit history | Employee/manager/HR workflows according to Team rules | +| Must I set attendance targets? | No; targets, leave accounts, breaks, and hints are optional | Configure employee contracts, accounts, and schedules explicitly | +| Can I organise customer work? | Customers, projects, service orders, billable classification, personal timesheets | Assigned projects with service orders or activities, plus Team reports | +| Can I use a shared tablet terminal? | No | Yes. QR or PIN with optional break stamping and PIN activity selection | +| Can I invite colleagues? | Switch to Team before adding another active person | HR creates employee accounts; email invitations are not implemented | +| Are invoices or agent usage included? | No | No | +| Which UI languages are available? | German and English | German and English, including kiosk routes | Use [the Solo guide](SOLO_MODE.md) for independent work and [the Team guide](TEAM_MODE.md) for organisation setup. Both share the [production installation](../README.md#production-installation-step-by-step), @@ -29,8 +29,8 @@ backup, security, and upgrade requirements. personal accounts and deductions disabled. - Existing non-interactive bootstrap commands without a mode remain Team. Use an explicit `--mode` for new provisioning scripts. -- Upgrading an existing database leaves it in **Team**. Migrations do not - reinterpret a one-person employee database as a Solo installation. +- Upgrading retains the installation's current mode. Installations that + predate Solo enter Team mode when first upgraded to a version with Solo. - Conversion is not identical to fresh setup: relevant accounting settings may be carried forward from an existing owner's Team work. Review the proposed personal policy and complete Solo setup after converting. diff --git a/docs/SOLO_MODE.md b/docs/SOLO_MODE.md index 4c759ea..507d5a6 100644 --- a/docs/SOLO_MODE.md +++ b/docs/SOLO_MODE.md @@ -1,6 +1,6 @@ # Solo mode -Solo mode in OpenClockwork 2.2.1 is for one person managing their own work: +Solo mode in OpenClockwork 2.4.0 is for one person managing their own work: freelancers, independent consultants, and owner-operated businesses. It provides time capture, customers, projects, service orders, personal calendar entries, and timesheets without manager approvals or a fictional HR department. @@ -31,11 +31,11 @@ are **not implemented** in this release. See the [roadmap](../ROADMAP.md). Use the [container deployment guide](CONTAINER_DEPLOYMENT.md) for host requirements, independent secrets, TLS, persistent volumes, and backups. -For release 2.2.1, set the following in your private +For release 2.4.0, set the following in your private `.env.prod`: ```dotenv -OPENCLOCKWORK_VERSION=2.2.1 +OPENCLOCKWORK_VERSION=2.4.0 TZ=UTC ``` diff --git a/docs/TEAM_MODE.md b/docs/TEAM_MODE.md index b1f5939..ce59cac 100644 --- a/docs/TEAM_MODE.md +++ b/docs/TEAM_MODE.md @@ -13,8 +13,8 @@ employee, manager, kiosk, or approval setup has to be replaced by Solo. Choose ## Install and bootstrap Follow the [container deployment guide](CONTAINER_DEPLOYMENT.md). -For release 2.2.1, set -`OPENCLOCKWORK_VERSION=2.2.1` in the private `.env.prod` file. Configure all +For release 2.4.0, set +`OPENCLOCKWORK_VERSION=2.4.0` in the private `.env.prod` file. Configure all required independent secrets, browser origins, the installation's IANA working timezone (`TZ`), stable volume names, and TLS before using real personal data. @@ -81,13 +81,12 @@ switch succeeds. bulk-assign by time model. 3. **Create employees and reporting relationships.** Enter start dates, weekly hours, roles, managers, holiday calendars, and actual leave entitlements. - Employee creation is administrator-managed; email invitation/onboarding is - not part of 2.2.1. + HR creates employee accounts directly. 4. **Review accounts.** Configure opening time balances, annual leave, carry-over, expiry, and reasoned adjustments as applicable. Check calculations against representative contractual cases before operational use. -5. **Create projects and orders.** Set planned hours, assign eligible employees, - and add service orders when required for allocation. +5. **Create projects.** Set planned hours, assign employees, and configure + service orders or an activity catalogue when the project needs one. 6. **Configure terminals as needed.** Pair a device and enable QR or PIN before restricting an employee to terminal booking. Set geofencing only if it is needed and justified. @@ -120,15 +119,18 @@ at 07:00. A 07:05 clock-in is credited from 07:05. Employees clock out themselves in the web app or at the terminal. Configure a daily break rule such as a 30-minute deduction from a threshold of 30 credited minutes to deduct that amount once per eligible workday. Gaps between bookings are outside credited -time. Automatic deductions are calculated and do not document actual pauses. -Choose the daily calculation or terminal break stamping for each schedule. - -The working-time table and CSV show the credited gross time and the recorded -duration after the scheduled end. The after-end value is separate from the -break deduction, approval status and target/actual difference. In a report -with calculated workdays, **Not applicable** identifies rows that use the -existing calculation, such as overnight bookings and direct target bookings. -The PDF working-time record keeps its existing calculation. +time. The deduction is applied to regular time first. It records a calculated +duration. Choose the daily calculation or terminal break stamping for each +schedule. + +Eligible workdays use the resulting net time in the employee time account and +the HR target/actual comparison. The working-time table and CSV also show +**Credited gross time** and **After scheduled end**. The latter is the +recorded duration after the scheduled end, before any deduction. Approval +status and target/actual difference appear separately. In a report with +calculated workdays, **Not applicable** identifies rows that use the existing +calculation, such as overnight bookings and direct target bookings. The PDF +working-time record retains its separate calculation and column layout. ## Employee workday @@ -215,12 +217,37 @@ Terminal deletion does not erase the location and device evidence already snapshotted in historical bookings. Plan access, legal basis, and retention for that data before enabling location capture. +### Project activities at PIN terminals + +1. In **Projects**, add activities to an active project and give the employee + a project assignment. The project needs at least one active activity, no + service orders, and either an active customer or no customer. +2. In **Terminals**, enable PIN and turn on **Allow activity selection at this + terminal**. An existing or new terminal starts with activity selection off. +3. At the kiosk, identify with a personal number and PIN. Select a project + and then an activity, then explicitly confirm clock-in. Unavailable projects + are disabled with a reason. **No activity** is available for direct clock-in. +4. To change activities during a shift, identify again, select a project and + activity, and confirm **Switch activity**. This creates adjoining segments + of the same shift. Clock-out remains directly available. While clocked out, + **Apply activity choice** remembers the selection. The kiosk preselects it + the next time the employee opens that project while it remains eligible. + Activity switching is unavailable during an open stamped break. + +Check the segments under **Working times** and the activity names under each +project's **Report** and CSV. See the [German PIN operations guide](TERMINAL_AUTH_OPERATIONS.de.md#projekttätigkeiten-am-pin-terminal) +for the operator workflow. + ## Projects and reports -Team projects use employee assignments, service orders, lifecycle state, and -planned versus actual hours. Referenced projects/orders must be retained or -deactivated rather than deleted. Project activity reports and CSV exports can -be filtered by the supported period, employee, project, and order fields. +Team projects use employee assignments, service orders or an activity +catalogue, lifecycle state, and planned versus actual hours. Deactivate +referenced projects, orders or activities to retain their booking history. +Projects with service orders cannot add activities, and projects with +activities cannot add service orders. Disabled catalogue items count towards +this restriction. Existing mixed catalogues can still be managed. +Project activity reports and CSV exports can be filtered by the supported +period, employee, project, and order fields. HR working-time reports show start/end, gross duration, break deductions, net work, and approval information independently of project assignment. Select all, one, diff --git a/docs/TERMINAL_AUTH_OPERATIONS.de.md b/docs/TERMINAL_AUTH_OPERATIONS.de.md index 9f9202f..0808462 100644 --- a/docs/TERMINAL_AUTH_OPERATIONS.de.md +++ b/docs/TERMINAL_AUTH_OPERATIONS.de.md @@ -58,6 +58,33 @@ bewerteten Zeiten. Zugeordnete Führungskräfte und HR finden die Nachprüfung unter **Arbeitszeiten**. Dort können sie einen bewerteten Beginn bestätigen, frühere Zeit anrechnen oder ein fehlendes Pausenende begründet ergänzen. +## Projekttätigkeiten am PIN-Terminal + +Seit 2.4.0 kann HR unter **Terminals** für ein PIN-fähiges Gerät +**Tätigkeitsauswahl am Terminal erlauben** aktivieren. Aktive Projekte brauchen +eine Zuweisung zum Mitarbeiter, mindestens eine aktive Tätigkeit und dürfen +keinen Service-Auftrag enthalten. Zugeordnete Kunden müssen aktiv sein. Die +Projektliste zeigt nicht buchbare Projekte mit einem Grund an. Die Einstellung +ist standardmäßig ausgeschaltet. + +1. Am Kiosk mit Personalnummer und PIN anmelden. Ein Projekt und die + gewünschte Tätigkeit wählen. **Jetzt einstempeln** speichert die Buchung. + Mit **Ohne Tätigkeit** ist das Einstempeln ohne Zuordnung möglich. +2. Während der Schicht erneut mit PIN anmelden, ein Projekt und eine Tätigkeit + wählen und **Tätigkeit wechseln** bestätigen. Der bisherige Abschnitt + endet zum Beginn des neuen. **Jetzt ausstempeln** bleibt direkt verfügbar. + Während einer offenen gestempelten Pause steht der Wechsel nicht zur Verfügung. +3. Ohne offene Buchung speichert **Tätigkeitswahl übernehmen** die Auswahl. + Beim nächsten Öffnen des Projekts schlägt der Kiosk die Tätigkeit vor, + sofern sie noch buchbar ist. Eine Zeitbuchung entsteht erst mit der + Bestätigung des Einstempelns. + +Unter **Arbeitszeiten** sind die Buchungsabschnitte sichtbar. Die +Projektauswertung und ihr CSV enthalten die Tätigkeit für den jeweiligen +Abschnitt. Mit synthetischen Mitarbeitern lässt sich der Ablauf anhand der +[lokalen PIN-Testanleitung](LOCAL_PIN_DOCKER_TEST.de.md#projekt-und-tätigkeit-am-pin-terminal) +prüfen. + ## Datenbankrechte und Audit Migrationen mit einer eigenen Owner-Rolle ausführen. Die API verwendet eine @@ -85,8 +112,8 @@ Audit-Rechte oder Rollentrennung unsicher sind. Das optionale `docker-compose.terminal-pin.yml` trennt Migrationsjob und API-Start; es setzt `MIGRATION_DATABASE_URL`, Runtime-Passwort und unabhängige PIN-/Audit-Secrets voraus. Mit der Produktions-Compose-Datei und passenden API-/Web-Images ab -Version 2.1.0 kombinieren. Für Release 2.2.1 gilt -`OPENCLOCKWORK_VERSION=2.2.1`. Das Overlay +Version 2.1.0 kombinieren. Für Release 2.4.0 gilt +`OPENCLOCKWORK_VERSION=2.4.0`. Das Overlay ersetzt den Migrationsstart in der API durch den getrennten Job. `DATABASE_URL` verwendet danach den Runtime-Benutzer mit demselben Passwort, das `TERMINAL_RUNTIME_DB_PASSWORD` für die Rolleneinrichtung bereitstellt. diff --git a/docs/WORKING_TIME_EXPORTS.de.md b/docs/WORKING_TIME_EXPORTS.de.md index 2eb735d..b82ce54 100644 --- a/docs/WORKING_TIME_EXPORTS.de.md +++ b/docs/WORKING_TIME_EXPORTS.de.md @@ -27,6 +27,19 @@ Der PDF-Nachweis wählt Buchungen anhand ihres lokalen Startdatums aus. Die Tabe Die Spalte Pausenabzug zeigt die bewertete Dauer. Bei Terminalpausen gibt der Nachweis zusätzlich die gestempelte Dauer sowie gegebenenfalls ein nachgetragenes oder fehlendes Ende an. Buchungen ohne Pausenstempel verwenden den für die Buchung gespeicherten automatischen Abzug, der im Nachweis als solcher gekennzeichnet ist. Die bewertete Zeit kann bei einer aktiven Terminalregel von den angezeigten Zeitpunkten abweichen. Im PDF werden Brutto und Netto auf Sekunden gerundet und der angezeigte Pausenabzug als Differenz daraus gebildet. Tages- und Zeitraumssummen addieren diese angezeigten Werte. +## Reguläre Arbeitstage in Tabelle und CSV + +Seit 2.4.0 kann HR für feste Tagespläne unter **Arbeitszeitpläne** die Option +**Regulären Arbeitstag berechnen** aktivieren. Die Arbeitszeittabelle und der +CSV-Export weisen für diese Tage **Anrechenbares Brutto** und **Nach regulärem +Ende** aus. Die Anrechnung beginnt frühestens am geplanten Start. Die Originalstempel +bleiben sichtbar. Ein konfigurierter Pausenabzug wird einmal +pro geeignetem Arbeitstag berechnet. **Nach regulärem Ende** zeigt separat die +erfasste Dauer nach dem geplanten Ende, vor Abzügen. Die Spalten für +Genehmigungsstatus und Soll/Ist-Differenz behalten ihre eigene Bedeutung. +Der PDF-Nachweis behält seine eigene Berechnung und Spaltenstruktur. +Siehe [Team-Konfiguration](TEAM_MODE.md#scheduled-workday-calculation). + ## Berechtigung und Grenzen Der Download ist auf HR-Berechtigte und die berechtigte Organisation beschränkt. Ein Sammel-PDF enthält personenbezogene Arbeitszeitdaten mehrerer Mitarbeiter und muss entsprechend geschützt und gezielt weitergegeben werden. Standorte, Freitextnotizen und Projekte werden nicht exportiert. diff --git a/package.json b/package.json index b059a28..290f61e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openclockwork", - "version": "2.3.0", + "version": "2.4.0", "license": "Apache-2.0", "private": true, "description": "OpenClockwork — self-hosted time and attendance with configurable work rules for organisations worldwide",