# Dispatch Spot Transportation Accounting — Original Planned Architecture

**Document purpose:**  
This document captures the original planning direction for adding a full-featured **Transportation Accounting** section to Dispatch Spot. It is intended to prevent the accounting concept from being lost in old chat history and to provide a clear starting point when this feature becomes an active build track.

**Current status:**  
Planned future architecture. This is **not** the current active build track. The current active development track remains the Fleet Map / live-estimated truck positioning work unless explicitly changed later.

---

## 1. Core Product Direction

Dispatch Spot should eventually include a complete native accounting system built specifically for:

- Dispatch companies
- Transportation companies
- Fleets
- Small carriers
- Owner-operators

The goal is for Dispatch Spot to become more than a dispatch tool. It should become a business operating system for transportation companies.

The broader product direction becomes:

```text
Dispatch + Operations + Tracking + Billing + Accounting + Growth Planning
```

---

## 2. Important Product Decision: QuickBooks Is Optional

Dispatch Spot accounting should **not** depend on QuickBooks.

Owners should be able to choose one of several workflows:

```text
Use Dispatch Spot accounting only
Use QuickBooks and sync selected records
Use QuickBooks only for accountant/tax reporting
Export accounting data to a CPA/bookkeeper
```

QuickBooks may be useful, but it should not be required.

The safest product rule is:

```text
Dispatch Spot is the source of operational accounting.
QuickBooks is optional for external bookkeeping, accountant review, tax preparation, import/export, or sync.
```

---

## 3. Why Native Transportation Accounting Matters

Many owner-operators and small carriers are strong at trucking but weak at bookkeeping. Some do not know whether they are truly making a profit or losing money.

Dispatch Spot should help answer simple but critical business questions:

```text
What did I make?
What did I spend?
What did I keep?
Which truck is profitable?
Which truck is hurting the company?
Which loads were actually good?
Is fuel eating the profit?
Are owner draws too high?
Can I afford another truck?
Am I saving enough for taxes?
Am I growing or just surviving?
```

The accounting section should convert day-to-day trucking activity into business truth.

---

## 4. Recommended Main Sidebar Section

Accounting should become a major sidebar section, not a small settings panel.

Recommended sidebar structure:

```text
Accounting
├── Overview
├── Income
├── Invoices
├── Payments
├── Expenses
├── Bills
├── Settlements
├── Bank / Cash
├── Truck Profitability
├── Reports
├── Reserves
├── Owner Draws
├── Tax Center
├── QuickBooks Sync
└── Accounting Settings
```

The exact labels may evolve, but the key idea is that Accounting becomes a major business area in Dispatch Spot.

---

## 5. Core Accounting Modules

### 5.1 Accounting Overview

The Accounting Overview should show the current health of the transportation business.

It should include:

- Revenue
- Expenses
- Net profit
- Cash on hand
- Accounts receivable
- Accounts payable
- Truck-by-truck profit
- Tax reserve status
- Maintenance reserve status
- Owner distributions
- Growth fund balance
- Warnings for unpaid invoices, overdue bills, low reserves, or unprofitable trucks

Plain-language purpose:

```text
Show the owner whether the business is healthy, stressed, or in danger.
```

---

### 5.2 Trucking-Specific Chart of Accounts

Dispatch Spot should include a trucking-specific chart of accounts instead of forcing users into a generic accounting structure.

Suggested categories:

#### Income

```text
Linehaul revenue
Fuel surcharge revenue
Detention
Layover
TONU
Accessorials
Dispatch service revenue
Other transportation income
```

#### Cost of Services / Direct Operating Costs

```text
Fuel
Driver pay
Factoring fees
Tolls
Lumper fees
Scale tickets
Trailer washout
Maintenance
Tires
Truck repairs
Trailer repairs
Permits tied to operations
```

#### Fixed Expenses

```text
Insurance
Truck payments
Trailer payments
ELD
Software
Phone
Office/admin costs
Compliance costs
Licensing
Permits
IFTA-related expenses
Parking/storage
Professional services
```

#### Owner / Equity

```text
Owner salary
Owner draws
Owner distributions
Capital contributions
Retained earnings
```

#### Reserves

```text
Tax reserve
Maintenance reserve
Tire reserve
Emergency reserve
Growth fund
Equipment replacement reserve
```

---

### 5.3 Load-Based Accounting

Every completed load should be able to become an accounting event.

The system should track:

```text
Load revenue
Broker/customer
Invoice amount
Pickup date
Delivery date
Fuel surcharge
Detention
Layover
TONU
Accessorials
Driver pay
Dispatch fee
Factoring fee
Payment status
Net profit by load
Truck assigned
Driver assigned
Loaded miles
Empty miles
Revenue per mile
Profit per mile
```

This connects operations directly to accounting.

The goal is to let the user see whether each load was truly profitable, not just whether it paid a high gross amount.

---

### 5.4 Invoicing and Accounts Receivable

Dispatch Spot should support invoice creation from completed loads.

Core features:

```text
Create invoices from completed loads
Track sent invoices
Track invoice due dates
Track paid, unpaid, partial, and overdue invoices
Record customer/broker payments
Record factoring payments
Show broker/customer balance
Show accounts receivable aging
Show unpaid invoice risk
Attach supporting documents
```

Accounts Receivable should be transportation-specific and connected to loads, customers, brokers, factoring, and documents.

---

### 5.5 Expenses and Accounts Payable

The accounting system should track business expenses and assign them properly.

Expense examples:

```text
Fuel
Maintenance
Insurance
Truck payments
Trailer payments
Driver settlements
Contractor payments
Permits
Tolls
Software
Office/admin expenses
Loans
Taxes
Factoring fees
Repairs
Tires
Fuel advances
Lumper fees
Scale tickets
Parking
Phone
ELD
Compliance services
```

Expenses should be assignable to:

```text
Truck
Driver
Load
Customer
Company
Expense category
Accounting account
```

This assignment is what makes the accounting transportation-specific.

Accounts Payable should eventually support:

```text
Bills owed
Due dates
Vendors
Recurring bills
Partial payments
Overdue bills
Payment status
Truck or load assignment
```

---

### 5.6 Driver, Carrier, and Owner-Operator Settlements

Settlements are critical for dispatch companies, carriers, and fleets.

The system should eventually support:

```text
Driver settlements
Owner-operator settlements
Carrier settlements
Dispatch fee deductions
Fuel advances
Accessorial splits
Factoring deductions
Reimbursements
Chargebacks
Deductions
Bonuses
Holdbacks
Settlement approval
Settlement export
Settlement payment tracking
```

This is especially important for:

- Dispatch companies charging carriers
- Carriers paying drivers
- Fleets managing truck/driver profitability
- Owner-operators tracking what they actually keep

---

### 5.7 Truck-by-Truck Profitability

Truck profitability should be one of the most important accounting reports in Dispatch Spot.

For each truck, the system should show:

```text
Gross revenue
Loaded miles
Empty miles
Average rate per mile
Fuel cost
Maintenance cost
Driver pay
Insurance allocation
Truck payment
Trailer cost allocation
Tolls
Repairs
Tires
Other direct costs
Net profit
Cost per mile
Profit per mile
Growth contribution
Downtime
Cash produced
```

This should allow owners to see:

```text
Which truck is making money?
Which truck is losing money?
Which truck is carrying the company?
Which truck should be repaired, replaced, or parked?
```

Truck profitability should feed directly into the future Growth Plan page.

---

### 5.8 Cash Flow, Reserves, and Safe-to-Spend Cash

The accounting system should help users understand how much money is actually safe to use.

The system should separate:

```text
Operating cash
Tax reserve
Maintenance reserve
Tire reserve
Emergency reserve
Growth fund
Owner distribution amount
Safe-to-spend cash
```

This prevents the common owner-operator mistake of confusing bank balance with profit.

A business may have cash in the bank but still need to reserve money for:

```text
Taxes
Maintenance
Insurance
Truck payments
Tires
Emergency repairs
Next truck purchase
Payroll or driver pay
```

The Accounting section should make this visible.

---

### 5.9 Owner Draws, Salaries, and Distributions

Dispatch Spot should treat owner money clearly.

The system should distinguish between:

```text
Owner salary
Owner draw
Owner distribution
Owner reimbursement
Capital contribution
Business expense
Personal expense
```

The Growth Plan and Accounting sections should include owner compensation and distributions because they affect whether the company can truly grow.

Important concept:

```text
A company may look profitable before owner distributions, but not have enough cash left to grow after distributions.
```

---

### 5.10 Tax and Reserve Planning

The Accounting section should include tax planning support.

Possible features:

```text
Tax reserve target
Estimated tax liability
Reserve progress
Quarterly tax reminders
IFTA-related tracking support
1099 contractor tracking
Deductible expense categorization
Year-end export for accountant
```

This should not replace a CPA, but it should help users avoid being surprised by taxes.

---

### 5.11 Financial Reports

Dispatch Spot Accounting should eventually generate standard and transportation-specific reports.

Recommended reports:

```text
Profit & Loss
Balance Sheet
Cash Flow Statement
Accounts Receivable Aging
Accounts Payable Aging
Truck Profitability Report
Customer Profitability Report
Driver Profitability Report
Load Profitability Report
Owner Draw / Distribution Report
Tax Reserve Report
Maintenance Reserve Report
Growth Fund Report
Settlement Report
Invoice Payment Report
```

Reports should be exportable for accountant review.

---

## 6. Growth Plan Connection

The future Growth Plan page should use real accounting data from Dispatch Spot Accounting.

Growth Plan needs two modes:

```text
Projection Mode = What could happen if the assumptions perform this way?
Reality Mode = What is actually happening based on real truck performance and accounting data?
```

Projection Mode lets the user manipulate assumptions:

```text
Target rate per mile
Expected cost per mile
Expected miles per week
Truck purchase price
Maintenance reserve
Fuel assumptions
Insurance
Driver pay
Dispatcher salary or dispatch fee
Office/admin salaries
Owner salary
Owner distributions
Tax reserve
Emergency reserve
Profit reinvestment percentage
Target truck count
Target growth timeline
```

Reality Mode should pull from actual accounting data:

```text
Actual load revenue
Actual miles
Actual RPM
Actual fuel cost
Actual driver pay
Actual insurance
Actual maintenance
Actual dispatch cost
Actual factoring fees
Actual salaries
Actual owner distributions
Actual truck payments
Actual net profit
Actual cash available for growth
```

Growth Plan should compare:

```text
Projected revenue vs actual revenue
Projected cost vs actual cost
Projected profit vs actual profit
Projected growth fund vs actual growth fund
Projected truck payoff timeline vs actual payoff timeline
Projected next-truck purchase date vs actual likely next-truck date
```

Accounting should become the source of truth for Growth Plan Reality Mode.

---

## 7. Original Growth Plan Theory to Support

The planned Growth Plan feature is based on the following theory:

```text
A truck with total cost per mile up to about $2.00/mile can be profitable if rates are kept at a $3.00/mile minimum.
```

The Growth Plan calculator should help users test whether that theory works in their real operation.

Basic formula:

```text
Revenue per mile
- Cost per mile
= Profit per mile
```

Then:

```text
Available reinvestment cash accumulates until it can buy the next truck.
```

The calculator should model:

```text
Truck #1 produces profit.
Profit goes into the growth fund.
When the growth fund reaches the cost of Truck #2, the company buys Truck #2.
Now Truck #1 and Truck #2 both produce profit.
Their combined profit buys Truck #3 faster.
Then three trucks fund the fourth faster.
```

This becomes the debt-free compounding growth engine.

Accounting reality data should show whether the actual business is on track with the projected growth plan.

---

## 8. QuickBooks Optional Sync

QuickBooks should be optional, not mandatory.

Possible QuickBooks workflows:

```text
No QuickBooks
Read from QuickBooks
Send approved records to QuickBooks
Two-way sync with review
Export for accountant
```

Recommended first QuickBooks approach:

```text
Read-only reality feed first
Controlled reviewed write-back later
Full two-way sync only if it becomes truly necessary
```

If QuickBooks sync is added, Dispatch Spot should include safeguards:

```text
User approval before write-back
Audit trail
Accountant review mode
Category mapping
Duplicate prevention
Clear separation between operational records and accounting ledger records
Reversal/edit history
Sync status
Sync error review
```

Dispatch Spot should never silently damage or confuse the user's official books.

---

## 9. Guided Bookkeeping for Owner-Operators

For owner-operators who do not keep books at all, Dispatch Spot can provide a guided bookkeeping workflow.

Concept:

```text
Dispatch Spot helps them run the business and quietly builds their books as they work.
```

The system can capture operational transactions and turn them into accounting entries.

Examples:

```text
Completed load creates revenue/invoice record.
Fuel receipt creates fuel expense.
Repair bill creates maintenance expense.
Truck payment creates loan/payment expense allocation.
Broker payment gets matched to load invoice.
Factoring deposit gets matched to invoice minus factoring fee.
Owner withdrawal gets classified as owner draw/distribution.
```

The system should ask simple questions instead of using intimidating accounting language:

```text
Was this fuel for Truck #104?
Was this repair for Truck #102?
Was this payment from Broker ABC for Load #8841?
Was this owner money or business expense?
```

Recommended workflow:

```text
Dispatch Spot prepares the record.
The user reviews and approves it.
Dispatch Spot posts it to the native accounting ledger.
Optional: Dispatch Spot syncs/export it to QuickBooks or accountant tools.
Everything is logged.
```

---

## 10. Accounting Data Model Direction

Once this feature becomes active, it should be built on a durable accounting model, not only demo cards.

Every accounting event should eventually include:

```text
Date
Workspace
Entity type
Entity ID
Debit account
Credit account
Amount
Category
Memo
Source record
Created by
Approved by
Audit history
Reversal/edit history
```

Important accounting architecture requirements:

```text
Double-entry accounting model
Audit trail
Role permissions
Editable/reversible transactions
Transaction history
Locked accounting periods
Export support
Tax/category mapping
Bank reconciliation later
Clear separation between operations records and accounting ledger records
```

Accounting records should be traceable back to the operational source:

```text
Load
Invoice
Payment
Expense
Truck
Driver
Customer
Carrier
Settlement
Bank transaction
Manual journal entry
```

---

## 11. Role-Specific Accounting Needs

### Dispatch Companies

Need to track:

```text
Dispatch service revenue
Carrier/customer invoices
Commission or percentage-based fees
Flat dispatch fees
Carrier balances
Payments received
Unpaid dispatch invoices
Dispatcher payroll/commission
Operating expenses
Profit by carrier/customer
```

### Transportation Companies / Fleets

Need to track:

```text
Load revenue
Truck expenses
Driver pay
Fuel
Maintenance
Insurance
Truck payments
Trailer costs
Settlements
Customer/broker invoices
Truck profitability
Fleet profitability
Cash flow
```

### Owner-Operators

Need to track:

```text
Revenue
Fuel
Maintenance
Insurance
Truck payment
Taxes
Owner draws
Personal vs business spending
Profit/loss
Cost per mile
Profit per mile
Cash available
Growth fund
```

The accounting system should adapt to the workspace type.

---

## 12. Suggested Phased Roadmap

Accounting should not be rushed into one build. It needs a phased architecture.

Recommended phased roadmap:

```text
Phase 1 — Accounting documentation and navigation foundation
Phase 2 — Trucking chart of accounts and accounting settings
Phase 3 — Load revenue ledger and invoice accounting
Phase 4 — Expense tracking and truck/load cost assignment
Phase 5 — Driver/carrier settlements
Phase 6 — Accounts receivable and payment tracking
Phase 7 — Truck-by-truck profitability
Phase 8 — Owner draws, salaries, reserves, and cash planning
Phase 9 — Financial reports
Phase 10 — Growth Plan reality feed
Phase 11 — Optional QuickBooks sync/export
Phase 12 — Bank reconciliation and accountant review tools
```

---

## 13. Suggested Future Build Track Name

Recommended planned architecture track name:

```text
Transportation Accounting + Native Financial Ledger Architecture
```

Possible first build label when the feature becomes active:

```text
v### — Transportation Accounting documentation and navigation foundation
```

Possible first build prompt:

```text
proceed with v### Transportation Accounting documentation and navigation foundation: add planned native Transportation Accounting architecture for dispatch companies, transportation companies, fleets, and owner-operators; make QuickBooks optional rather than required; add Accounting as a future major sidebar section; document trucking-specific chart of accounts, load-based revenue accounting, invoicing, payments, expenses, settlements, truck profitability, cash/reserve tracking, owner draws, tax planning, financial reports, Growth Plan reality feed, and optional QuickBooks sync/export without changing current operational workflows or activating accounting ledger mutations yet
```

---

## 14. Important Guardrails

When building this feature later:

```text
Do not make QuickBooks required.
Do not post accounting records without audit trail.
Do not silently change financial records.
Do not confuse operational records with ledger records.
Do not allow destructive edits without reversal history.
Do not show fantasy profit without salaries, owner draws, taxes, reserves, and real expenses.
Do not let Growth Plan use projections alone when reality data is available.
Do not rush accounting into a shallow demo-only feature once active.
```

---

## 15. Final Product Statement

Dispatch Spot should include a full **Transportation Accounting** section with native accounting for dispatch companies, transportation companies, fleets, and owner-operators.

QuickBooks should be optional, not required.

The accounting system should include:

```text
Trucking-specific chart of accounts
Load-based revenue accounting
Invoices
Payments
Accounts receivable
Expenses
Accounts payable
Settlements
Truck-by-truck profitability
Cash and reserve tracking
Owner draws and distributions
Salaries/payroll tracking
Tax planning
Financial reports
Growth Plan reality data
Optional QuickBooks import/export/sync
Bank reconciliation later
Accountant review tools later
```

The long-term goal is simple:

```text
Dispatch Spot should help transportation business owners know what they made, what they spent, what they kept, which trucks are profitable, whether they can grow, and how to build a stronger company with discipline and accurate numbers.
```
