s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All packages
Business & operations v0.57.40 New

@happyvertical/smrt-timesheets

Shared time entries: who worked how long on what, approval and correction, and immutable charge and compensation snapshots taken at approval.

Source ↗

What it gives you

Shared time entries: who worked how long on what, approval and correction, and immutable charge and compensation snapshots taken at approval.

  1. 01One model for professional services, shop floors, and job sites: a Profile or an agent, a generic work reference, a duration, a source
  2. 02Approved entries never change; a correction is a new row and the original flips to corrected
  3. 03Money is never on the entry: approval writes one charge and one compensation snapshot in integer minor units

Moved out of projects and support

ServiceTimeEntry, the two snapshots, and ServiceEvidenceService moved here from smrt-projects. The table names are unchanged, so existing rows need no migration, and the old qualified names resolve as deprecated aliases. Under pnpm an application that depends on smrt-projects or smrt-support must add this package directly, or the CLI stops planning the three time tables.

Attendance and period timecards

The attendance subpath adds AttendancePunch, AttendanceBreak, and AttendanceService: punch in and out, paid and unpaid breaks, autoClose, and offline replay where committed attendance wins. The rollup subpath adds per-person regular and overtime rollups, immutable confirmation, and attributed adjustments. Calendar, holiday, and overtime rules belong to the consumer.

Decimal hours and dated labour pricing

A source that supplies decimal hours records durationHours as exact text; seconds and timestamps stay null. DatedLabourCommercialResolver is an opt-in resolver with effective-dated customer, wage, and burden rates; the host authorizes the schedule and binds the work date.