Skip to main content

Workforce and back-office data

Connecting Workforce, Time, Billing, and Project Data

Medium Size BusinessCustom trailer manufacturer and service operation

For a custom trailer manufacturer and service operation, we connected time, pay, billing, and project data into one auditable labor model — custom SwipeClock and BambooHR adapters, a swipe-reconciliation guard engine that clears ghost and duplicate punches without ever guessing, and a hard rule that labor cost is never inferred.

0labor dollars inferred — every cost traces to a real punch and a real rate
3 → 1employee ID systems reconciled into one technician identity
Nightlyself-healing reconciliation catches late punch edits
4systems joined: time, pay, billing, and projects

The work was logged. The labor was a guess.

The operation ran on a capable field-service ERP. It knew the work cold — every work order, job, labor log, and invoice. What it could not tell you was who actually did the work, when they actually clocked in, or what they were actually paid.

Those answers lived in two other systems that had never been introduced to it — and the single most important number in a service business sat in the gap between them:

  • Three systems, no shared keythe field-service ERP, the HR and payroll system (BambooHR), and the time clock (SwipeClock) each identified the same technician by a different ID, so nothing joined cleanly
  • Hours scattered across tablespaid time had no single authoritative source, so “paid hours” was effectively un-computable
  • The headline metric was fictionRecovery Rate (billed hours ÷ paid hours), the number that tells a service operator how much of the time they pay for turns into billable work, couldn’t be trusted because its denominator didn’t exist

SwipeClock + BambooHR → labor facts · nightly

One nightly run connects four systems.

Each run pulls raw time punches and effective-dated pay rates through custom adapters, resolves one technician identity across three ID systems, reconciles every swipe with guard rules — loading finalized punches, clearing provably-superseded ghosts and duplicates, and flagging anything it can’t prove — then costs labor from a real punch times a real rate.

The swipe that wore two faces

Time clocks are messy in a way that quietly corrupts everything downstream. The same physical punch can arrive with two different identities: a provisional tap the instant a technician clocks in — zero hours, often a clock-in with no clock-out yet — and then, once it’s approved or hand-edited, a brand-new record with rounded times, a paired in-and-out, and computed hours. The source never tells you they’re the same punch.

Left alone, the warehouse keeps both — a “ghost” punch beside its real twin — and those ghosts double-count straight into labor hours and overtime. So the careful part of this work wasn’t the loading. It was the reconciliation: proving, row by row, which swipes to keep, which to remove, and which a human has to look at.

  • Load finalized punches, and refresh any whose content changed — matched on a content hash, since the time clock exposes no “last modified” to trust
  • Remove a stale swipe only when it’s *provably* superseded: an incomplete or zero-hour ghost, or a duplicate whose clock interval overlaps its replacement
  • Flag, never guessa complete punch that doesn’t overlap might be a real second shift, so the engine refuses to delete it and surfaces it for review instead
  • Guard the destructive stepif the time clock returns under ~80% of the expected employee-days in an export, every deletion is skipped that run, so a dropped export can never trigger a wave of false deletes; the inserts still flow

Labor cost is never inferred

Once time and pay are trustworthy, it’s tempting to take shortcuts — estimate cost from billable hours times an assumed rate, or back it out of revenue and an assumed margin. We made the opposite a rule the system enforces: every labor dollar traces to a specific clock punch and a specific pay rate from the HR system, with zero estimation. Salaried roles are normalized to an effective hourly rate so every worker is comparable, and rates are effective-dated — a punch from last spring is costed at last spring’s rate, not today’s.

The integration is built to tell the truth about itself, too. Each correction is isolated to its own savepoint, so one bad row can’t poison a batch. A commit gate refuses to report a success the database didn’t actually persist — closing an old failure mode where the console printed “applied N corrections” while the write had silently rolled back. And a single duplicated employee ID — which would quietly bill one technician’s hours to another — stops the pipeline cold rather than mis-attributing pay.

What we built

Custom adapters, built for real-world mess.

01

Custom SwipeClock adapter

A JWT-authenticated pull of the time clock’s richest export — chosen for a unique punch ID, rounded and unrounded times, an edit flag, and a full regular / overtime / double-OT breakdown — upserted and de-duplicated into clean punch facts, with a 30-day lookback that re-checks recent days every night.

02

The swipe-reconciliation engine

The guard logic that classifies every punch as load, ghost, duplicate, or flag — with interval-overlap tests, an 80% coverage tripwire, per-row savepoints, and an honest commit gate. The same module runs unattended each night and as a dry-run-first cleanup an operator can preview by hand.

03

Custom BambooHR adapter

The authoritative source of pay: an effective-dated compensation pull that normalizes hourly, salaried, weekly, or monthly rates into one comparable hourly rate, then stamps identity, role, and cost onto otherwise-anonymous punches.

04

The enriched labor model

A single view that joins who they are (HR), when they worked (the time clock), what they built (work orders and jobs), and what it billed (invoices) — allocating regular vs overtime at a 40-hour weekly line and pricing it at the real rate, for true job-level labor cost and margin.

Built with

Sources
  • SwipeClock · time & attendance
  • BambooHR · HR & pay
  • Field-service ERP · work orders, jobs, invoices
Enrichment
  • Python ELT adapters
  • JWT / REST integrations
  • Idempotent, config-driven pipeline
Lands in
  • SQL data warehouse · star schema
  • Materialized views
  • Power BI

The outcome

Time, pay, billing, and project data now meet in one auditable labor model — every cost traceable to a real punch and a real rate. When a key efficiency metric once read an impossible 571%, the connected model was finally precise enough to catch it and correct it. The reporting stopped being merely convenient and became something a CFO can sign.

Evidence

What changed in the work.

  • Custom SwipeClock + BambooHR adapters
  • Swipe-reconciliation guard engine
  • Labor cost never inferred