# Payroll Logic

Payroll logic is controlled by the driver’s ownership type and selected pay mode. This affects how earnings are calculated and what actions are allowed in the Payroll and Load modules. Once a driver completes a load under a specific payroll type, that type is locked and cannot be changed.

**Image Placeholder:**\
`![DriverPayrollLogic](../assets/driver-payroll-logic.png)`\
\&#xNAN;*Figure: Payroll configuration states across different owner types.*

#### Ownership Type Logic

<table><thead><tr><th width="200">Owner Type</th><th>Available Pay Modes</th><th>Notes</th></tr></thead><tbody><tr><td>Company</td><td>Per Mile, Flat Rate, Commission</td><td>Standard employees; integrated into full payroll flow</td></tr><tr><td>3rd Party</td><td>Flat Rate</td><td>Used for external contractors; limited visibility in payroll module</td></tr><tr><td>Sole Proprietor</td><td>Commission</td><td>Treated as owner-operator with expense tracking and deductions</td></tr><tr><td>Owner - Company</td><td>Commission</td><td>Same as Sole Prop, but with different document rules</td></tr></tbody></table>

#### Pay Type Behavior

<table><thead><tr><th width="200">Pay Type</th><th>Key Fields</th><th>Affects</th></tr></thead><tbody><tr><td>Per Mile</td><td>Loaded, Empty, Extra Miles</td><td>Connected to stops and mileage in Load and Miles modules</td></tr><tr><td>Flat Rate</td><td>Load Pay</td><td>Fixed amount per load; used by 3rd party drivers</td></tr><tr><td>Commission</td><td>Earnings %, Load Total</td><td>Percentage of broker rate; used for owners and company drivers</td></tr></tbody></table>

#### Locking Rules

* Once a driver completes a load, payroll type is locked.
* Off-duty, inactive, or newly invited drivers can change payroll type.
* Changing ownership type may reset available payroll modes.
* Drivers with open payrolls cannot switch modes until payroll is closed.

#### Integration Notes

* Payroll settings are visible in the Driver Details view.
* Load cards and payroll cards display mode-specific fields.
* Changes are synced to payroll processing and reporting logic.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rute.gitbook.io/carrier/add-and-edit-driver/payroll-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
