payroll · timesheets · project-accounting · controls
Timesheet-to-payroll mapping for project time and pay
Concrete rules to turn approved timesheets into payroll inputs: pay-code mapping, rate hierarchy, approval routing, audit trails and keeping billing rates separate from payroll.
The Blue Cimarron Team · · 5 min read
Translating an approved timesheet into payroll requires more than summing hours. You need clear mapping rules that convert hours by day and job into the right earnings codes, pay rates, and cost accounts while preserving a separate set of billing rates for invoicing projects.
This post lays out the mapping elements finance and operations teams should agree on before automating a payroll run: pay-code assignments, rate hierarchies, billable vs non‑billable treatment, approval routing and audit trail requirements, and a worked example that ties the pieces together.
Core mapping principles
Start with three explicit boundaries: the source of truth for hours (the approved timesheet), the source of truth for payroll rates (the payroll master or employee record), and the source of truth for project billing rates (the project or contract record). Mapping is the logic that takes an approved hours record and emits two different downstream transactions: payroll earnings lines and, where appropriate, project billing lines.
Keep the mapping deterministic. For each timesheet row (employee, date, job/task, time type), the system must produce a single, predictable payroll earnings record: an earnings code, a pay rate (or multiplier), number of hours, and cost-centre. If business rules can produce more than one outcome, capture a resolution precedence in writing.
Record provenance for every derived field. The payroll input should include references to the source timesheet row, who approved it, and which mapping rule applied. That provenance is essential for audits and for reconciling payroll costs to project WIP and invoices.
Pay codes, rate hierarchies and multipliers
Define a compact set of pay codes that reflect payroll processing needs (for example: REG, OVT, PTO, HOL, SHIFT_PREM). Each pay code maps to a payroll earnings category and, optionally, a multiplier applied to the base pay rate. Keep pay codes independent from project billing codes.
Establish a clear rate hierarchy so the system can select a numeric rate when it constructs an earnings line. A practical hierarchy (highest precedence first) looks like this: 1) explicit timesheet override rate entered by manager, 2) employee pay-rate effective on the date, 3) role or job-class rate, 4) location-adjustment rate, 5) fallback company standard rate.
When a pay code implies a premium (for example, a 'shift premium' or overtime multiplier), store the multiplier as part of the pay-code definition rather than baking it into every timesheet. That lets you change premium policy without editing historical timesheets. Keep the multiplier application explicit: attendance hours × employee base rate × pay-code multiplier = gross earnings for the line.
- Implement pay-code definitions that include: earnings category, multiplier, GL earning account, and whether the code is billable to a project.
- Store rate effective-dating so historical payroll runs always use the pay rate that applied on the work date.
- Disallow silent rate falls—if the resolved rate comes from a fallback, flag the payroll line for review.
Billable versus non‑billable and preserving billing rates
Do not conflate the rate used for payroll with the rate used for client billing. The payroll mapping produces cost-side lines; project billing must be a separate transformation from approved hours to invoiceable transactions using project billing rates.
For each timesheet row include a billable flag and, if billable, the project-specific billing rate source (contract line, task rate card, or fixed-price allocation). When emitting the payroll record, copy the billable flag but do not carry the billing rate into the payroll earnings line.
Keep project billing rates in the project module and generate invoice lines independently. Maintain a link between the payroll cost line and the project billing line via a common timesheet-row ID so you can reconcile billed revenue to payroll cost without mixing rates.
- Timesheet row fields to capture: employee, date, hours, pay-code, billable flag, project/task, billing-rate-source-id, timesheet-row-id.
- When creating billing lines, use project-rate effective-dating separate from payroll rate effective-dating.
Approval routing and audit trail requirements
Approval is a gating condition: only approved timesheet rows are eligible for automated payroll mapping. Define what 'approved' means—single approver, multi-level approval for certain projects, or exception routing for flagged rows—and encode that in the timesheet workflow.
The payroll input must carry an auditable trail: who submitted, who approved, timestamps, approval comments, and which rule resolved any ambiguous fields. Capture the approver identity at the timesheet-row level, not just at the timesheet header, because different rows can route to different managers.
Preserve a change history for critical fields (hours, pay-code, billable flag, project assignment). If any field was edited after approval, the system should either block the edit or require a re-approval. That prevents retroactive alterations that break payroll or project invoicing.
Require approver identity and timestamps on every timesheet row so payroll inputs can be traced back precisely to an approval decision.
Worked example and handling common exceptions
Example (hypothetical): Maria, a consultant, records on 2026-06-15: 8 hours on Project A (billable), pay-code REG; 2 hours on internal training (non‑billable), pay-code REG. Her employee base pay rate is $30/hr. Project A’s billing rate is $150/hr. The company defines an overtime pay-code OVT with multiplier 1.5.
Mapping to payroll: The Project A row yields a payroll earnings line: earnings code REG, hours 8, rate $30, gross $240, cost centre = Maria's cost centre, timesheet-row-id included. The training row yields earnings code REG, hours 2, rate $30, gross $60. If Maria had instead recorded 11 hours on a day and your pay-code rules split the 3 hours into OVT, the mapping would create two payroll lines: REG 8×$30=$240; OVT 3×($30×1.5)=$135.
Mapping to billing: Separately, the Project A row generates an invoiceable line referencing the same timesheet-row-id, billing rate $150, hours 8, revenue $1,200. The billing rate is stored on the project contract, not in the payroll earnings line. Reconciliation uses the common timesheet-row-id to tie the $240 payroll cost to the $1,200 billed revenue.
Common exceptions to plan for: missing or ambiguous project assignment, overridden rates entered on a timesheet, edited approved rows, and split-day rules where hours must be split across different pay codes. For each exception define a deterministic resolution: a required manager override with justification, a routing to payroll admin for corrections, or automatic splitting logic with an audit note.
If you publish a payroll-run file to a payroll engine or export journal entries, include the timesheet-row-id and approver details in the export. That simplifies downstream reconciliations and supports patterns described in Payroll run to ledger: integration patterns that eliminate manual posts.
What to do next
Draft your mapping matrix: list every timesheet row attribute (employee, date, project, task, hours, pay-code, billable flag, override rate) across the top and the payroll output fields (earnings code, rate, hours, cost account, approver) down the side. For each cell record the transformation or the precedence rule.
Run a pilot with a single business unit for two payroll cycles, capturing every timesheet-row-id in both payroll and billing exports and reconciling costs to billed revenue. Use the pilot to surface ambiguous rules and exceptions, then lock the mapping and approval routing.