Modern motor carriers running 50 to 500 trucks face a complex payroll and settlement environment. Driver compensation often combines per-mile rates, percentage-of-linehaul splits, accessorial bonuses, fuel surcharges, and detention pay. At the same time, carriers must manage fuel card advances (Comdata, EFS), lease-purchase deductions, maintenance escrow, insurance holdbacks, and produce accurate 1099-NEC statements at year end.
This guide details the architecture, data model, business rules, and operational workflows required to build or configure a carrier-grade driver settlement and escrow accounting engine. Whether you run Truckmate, McLeod, TMW Systems, or a custom TMS, the principles below apply directly to your SQL schema and nightly batch processes.
Core Business Rules That Must Be Automated
1. Loaded vs Empty Mileage Split Calculations
Most percentage-based drivers are paid on a percentage of the linehaul revenue after subtracting fuel surcharges and accessorials that are not shared. The engine must first separate loaded miles from empty (deadhead) miles. Empty miles are typically reimbursed at a fixed rate (often $0.65-$1.25 per mile) while loaded miles participate in the revenue split (typically 25-35% of qualified revenue).
| Component | Calculation | Driver Share | Carrier Retention |
|---|---|---|---|
| Linehaul Revenue | $2,850 | 28% = $798 | $2,052 |
| Fuel Surcharge | $475 | $0 (not shared) | $475 |
| Loaded Miles | 1,240 | Included in % split | - |
| Empty Miles | 185 | $1.10/mi = $203.50 | - |
| Detention (2 hrs) | $150 | 50% = $75 | $75 |
| Total Driver Pay | - | $1,076.50 | - |
2. Fuel Card Advance Reconciliation (Comdata / EFS)
Fuel advances create temporary negative balances on the driver settlement. The engine must match EDI 214 status updates and Comdata/EFS transaction files (typically received via SFTP or API) to specific loads or driver IDs. Unmatched advances roll into the next settlement period as an open receivable until reconciled or written off.
Best practice is to store fuel transactions in a normalized table with columns: transaction_id, driver_id, card_number, amount, transaction_date, load_id (nullable), match_status, and settlement_batch_id.
3. Recurring Escrow & Deduction Schedules
Lease-purchase drivers often require weekly deductions for truck payment, maintenance reserves, and insurance escrow. These are typically fixed dollar amounts or percentages of gross pay. The settlement engine must track cumulative escrow balances, apply minimum thresholds, and release excess funds according to contract terms.
Common escrow types include:
- Maintenance reserve ($0.12-$0.18 per mile)
- Lease buyout escrow
- Physical damage deductible reserve
- Driver safety or performance bond
4. Driver Pay Dispute Audit Trails
Every settlement voucher must carry a full immutable audit trail. When a driver disputes a deduction or mileage calculation, dispatch, payroll, and safety teams must see exactly which EDI 204 load tender, fuel transaction, or rate table produced the number. This requires timestamped snapshots of the calculation inputs stored alongside each settlement line item.
Recommended SQL Schema Fragments (Carrier TMS)
CREATE TABLE driver_settlement_batches (
batch_id INT IDENTITY(1,1) PRIMARY KEY,
settlement_date DATE NOT NULL,
period_start DATE NOT NULL,
period_end DATE NOT NULL,
status VARCHAR(20) NOT NULL,
created_by VARCHAR(50),
created_at DATETIME DEFAULT GETDATE()
);
CREATE TABLE driver_settlement_lines (
line_id BIGINT IDENTITY(1,1) PRIMARY KEY,
batch_id INT NOT NULL,
driver_id INT NOT NULL,
load_id VARCHAR(20),
line_type VARCHAR(30) NOT NULL, -- 'linehaul_percent', 'empty_mileage', 'detention', 'fuel_advance', 'escrow_deduction'
description VARCHAR(120),
amount DECIMAL(12,2) NOT NULL,
miles DECIMAL(8,2),
rate DECIMAL(6,4),
reference_id VARCHAR(50), -- fuel_tx_id or load_stop_id
audit_snapshot XML,
FOREIGN KEY (batch_id) REFERENCES driver_settlement_batches(batch_id)
);
These tables, when combined with properly indexed load, stop, and fuel transaction tables, allow nightly batch jobs to generate settlements in under 90 seconds for fleets under 400 trucks.
Automated 1099-NEC Export Process
At year end the system must aggregate all positive settlement lines (excluding true reimbursements) by driver tax ID. The export should produce IRS-compliant 1099-NEC files and printable PDFs. Carriers using McLeod or Truckmate typically push this data through an integration map to a third-party payroll provider or generate it directly from the settlement engine.
Strong Tower Consulting, LLC and our sister company Exspeedite LLC are separately organized under common ownership. Carriers are never required to purchase or license our software to receive our consulting, system design, or integration services. We remain technology agnostic so our recommendations serve only your operational and financial objectives.
Implementation Roadmap
- Map all current driver contract types and compensation rules into a rate matrix table.
- Build nightly ETL that normalizes EDI 204, 214, and 210 data into settlement-ready fact tables.
- Implement fuel card file parsers (Comdata CSV/XML and EFS) with fuzzy matching on load and driver identifiers.
- Create escrow balance tracking with effective dating so mid-month contract changes do not corrupt historical settlements.
- Develop dispute workflow with immutable calculation snapshots and comment threads.
- Automate 1099-NEC and state withholding reports with full audit trail.
Carriers who invest in a clean, rule-driven settlement engine typically reduce payroll hours by 60-75% and dramatically lower the frequency of driver pay disputes.
Frequently Asked Questions
How do you correctly split fuel surcharge revenue in a percentage-of-load settlement?
Fuel surcharge is almost never shared with the driver under percentage contracts. The settlement engine must isolate the FSC line item from the base linehaul revenue before applying the driver percentage. This separation should be stored at the load-stop level using data from the original EDI 204 or carrier rate confirmation.
What is the best way to reconcile Comdata and EFS fuel advances against specific loads?
Use a combination of driver-assigned card number, transaction date proximity to load pickup, and load origin/destination ZIP matching. Store the match confidence score. Any transaction with confidence below 85% should be flagged for manual review before the settlement batch is closed.
Should escrow deductions be taken before or after percentage calculation?
Industry standard is to calculate the gross driver share first (percentage of qualified revenue plus empty-mile pay and accessorial splits), then apply fixed or percentage-based escrow deductions. This produces a cleaner audit trail and matches the language found in most owner-operator agreements.
Can this settlement logic be added to an existing Truckmate or McLeod installation?
Yes. Both platforms support custom tables, user-defined fields, and scheduled SQL scripts or Crystal reports. Strong Tower has implemented this exact architecture inside Truckmate, McLeod, and TMW environments for carriers ranging from 75 to 425 trucks.
Ready to strengthen your carrier settlement and escrow processes? Our team has designed these systems for over 18 years.
Start a Settlement Architecture Assessment or call us directly at 763-244-1373.