> ## Documentation Index
> Fetch the complete documentation index at: https://help.fieldpulse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up Cost Basis and Invoice Profitability

> Turn on invoice cost basis in FieldPulse so every estimate and invoice shows cost, profit, and margin, and pick which roles can see unit costs.

> **Who uses this:** An Admin turns on invoice cost basis in Company Settings and sets whether **Managers and Service Agents** or **Managers only** can see unit costs on records. **Availability:** All regions.

Invoice cost basis records what each line item on an [estimate or invoice](https://www.fieldpulse.com/features/estimates-and-invoices) actually cost you, so FieldPulse can show the profit and margin on the work. Your item list can store a unit cost that the person building the record never sees, which means you can track profitability internally without putting your buy prices in front of the whole team.

## Overview

Once invoice cost basis is on, every estimate and invoice gains a **Cost Basis** tab showing what each line item cost, what it earned, and the margin for the job overall. The cost comes from the unit cost on the line item, so a line item entered without a cost produces no cost basis.

Two settings do the work, and both live on the same screen in Company Settings:

* **Enable Invoice Cost Basis** turns the tracking on and adds the **Cost Basis** tab to estimates and invoices.

* **Invoice Cost Visibility** decides who sees unit costs on those records: **Managers and Service Agents**, or **Managers only**.

The **Cost Basis** tab is also where automatically calculated commission appears on a record. See [Setting Up Invoice-Level Commission](https://help.fieldpulse.com/payments/commissions/invoice-level-commission.md).

## Video walkthrough

[https://www.loom.com/embed/ca83b67afa8e41b297857265b22a3723?hide\_owner=true\&hide\_share=true](https://www.loom.com/embed/ca83b67afa8e41b297857265b22a3723?hide_owner=true\&hide_share=true)

Video walkthrough: cost basis and invoice profitability

## Before you begin

* **Sign in as an Admin.** Only Admin users can open Company Settings. See [User Roles and Permissions Details](https://help.fieldpulse.com/settings/users-teams/user-roles.md).

* **Enter unit costs on your line items.** If a line item has no cost, FieldPulse cannot generate a cost basis for it. See [Setting Up Item List & Inventory](https://help.fieldpulse.com/inventory-materials/item-list/adding-items.md).

* **Decide who should see unit costs**: **Managers and Service Agents**, or **Managers only**.

## Step-by-step setup

### 1. Turn on invoice cost basis

1. Go to **Company Settings** in the left-side menu and select **Estimates & Invoices**.

2. Select **Advanced** in the sub header.

3. On the **Advanced Invoice Settings** page, set **Enable Invoice Cost Basis** to **Yes**.

![Advanced Invoice Settings in Company Settings, with the Estimates & Invoices tab and the Advanced sub-tab highlighted and the Enable Invoice Cost Basis toggle set to Yes](https://mintcdn.com/fieldpulse/5vBkBwKkjM33v_A9/static/images/_api/1228739-cost-basis-and-invoice-profitability/01.png?fit=max\&auto=format\&n=5vBkBwKkjM33v_A9\&q=85\&s=1528b17e56ae7d9db5941420b9def01b)

### 2. Set who can see unit costs

1. In the **Invoice Cost Visibility** dropdown, choose **Managers and Service Agents** or **Managers only**.

2. Select **Save**.

![The Invoice Cost Visibility dropdown highlighted on the Advanced Invoice Settings page, set to Managers, below the Enable Invoice Cost Basis toggle](https://mintcdn.com/fieldpulse/5vBkBwKkjM33v_A9/static/images/_api/1228739-cost-basis-and-invoice-profitability/02.png?fit=max\&auto=format\&n=5vBkBwKkjM33v_A9\&q=85\&s=89a93248735bc0a4a3dee0a6593c743a)

The **Advanced Invoice Settings** page also holds **Enable Automatic Markup** and **Enable Commission Calculations**. Those settings have their own pages. See [How to Use Markups & Margins](https://help.fieldpulse.com/payments/commissions/markups-margins.md) and [Setting Up Invoice-Level Commission](https://help.fieldpulse.com/payments/commissions/invoice-level-commission.md).

## Viewing cost basis on a record

1. Open an existing invoice, or create a new invoice and enter your line items with their unit costs and the other relevant information.

2. Scroll to the bottom of the page and select **Save**.

3. On the invoice record, select **Cost Basis** in the top menu.

![Invoice Record page with the Cost Basis tab highlighted in the top menu alongside Info, Comments, Payments, Files, Forms, Orders, and Dynamic Proposals](https://mintcdn.com/fieldpulse/5vBkBwKkjM33v_A9/static/images/_api/1228739-cost-basis-and-invoice-profitability/03.png?fit=max\&auto=format\&n=5vBkBwKkjM33v_A9\&q=85\&s=437688fdf58bf38f785a8482568b126e)

The tab opens a **Cost & Profit Analysis** view. Each line item lists its **Unit Cost**, **Unit Price**, **Quantity**, **Cost**, **Price**, and **Profit Margin**, and a **Total** row adds up cost, price, and profit margin for the job with the margin percentage. Automatically calculated **Sales Commission** appears below the totals, next to a **Product and Service Breakdown** that separates service cost and price from product cost and price.

From this view you can also:

* Select **Add New Expense** to record a cost that isn't a line item on the invoice.

* Select **Export** to download the breakdown.

![Cost & Profit Analysis view on the Cost Basis tab showing unit cost, unit price, quantity, cost, price, and profit margin per line item, a Total row, the Add New Expense and Export buttons, and the Sales Commission and Product and Service Breakdown panels](https://mintcdn.com/fieldpulse/5vBkBwKkjM33v_A9/static/images/_api/1228739-cost-basis-and-invoice-profitability/04.png?fit=max\&auto=format\&n=5vBkBwKkjM33v_A9\&q=85\&s=e8fe68b01d0428a889d21c144df4a034)

> [!NOTE]
>
> Discounts do not appear on the Cost Basis tab and are not factored into the cost basis calculation: the total invoice amount shown on the tab is the pre-discount total. If you use [automatic deposit invoices](https://help.fieldpulse.com/integrations/accounting/quickbooks/automatic-deposit-invoices.md), the deposit line item on the final invoice is excluded from the cost basis calculation and does not appear on the Cost Basis tab or in the export.

Your setup is working when you open an invoice with unit costs entered, select **Cost Basis**, and see the cost, profit, and margin for each line item and for the job overall, while the roles you excluded never see the unit costs.

## Settings reference

| **Setting** | **Where it lives** | **What it controls** |
| - | - | - |
| **Enable Invoice Cost Basis** | Company Settings > Estimates & Invoices > Advanced | Turns cost and profit-margin tracking on for estimates and invoices, adding the **Cost Basis** tab to each record. |
| **Invoice Cost Visibility** | Company Settings > Estimates & Invoices > Advanced | Sets who can see unit costs on estimates and invoices: **Managers and Service Agents** or **Managers only**. |

## Related articles

* [How to Use Markups & Margins](https://help.fieldpulse.com/payments/commissions/markups-margins.md)
* [Setting Up Invoice-Level Commission](https://help.fieldpulse.com/payments/commissions/invoice-level-commission.md)
* [Commission Structures Overview](https://help.fieldpulse.com/payments/commissions/commission-structures.md)
* [Setting Up Default Estimate & Invoice Settings](https://help.fieldpulse.com/estimates-invoices/creating/default-settings.md)
* [Setting Up Item List & Inventory](https://help.fieldpulse.com/inventory-materials/item-list/adding-items.md)
* [User Roles and Permissions Details](https://help.fieldpulse.com/settings/users-teams/user-roles.md)


## Related topics

- [Setting Up Invoice-Level Commission](https://help.fieldpulse.com/payments/commissions/invoice-level-commission.md)
- [Setting Up Default Estimate & Invoice Settings](https://help.fieldpulse.com/estimates-invoices/creating/default-settings.md)
- [Setting Up Flat Rate Job Commissions](https://help.fieldpulse.com/payments/commissions/flat-rate-job-commissions.md)
- [Commissions & Profitability](https://help.fieldpulse.com/payments/commissions/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.