> For the complete documentation index, see [llms.txt](https://helpwith.salesorder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpwith.salesorder.com/setup/configuration/sales-invoice.md).

# Sales Invoice ⛭

Configure Sales Invoice behavior, including invoicing by Warehouse or Site.

See [Ref #](https://helpwith.salesorder.com/setup/configuration/ref.md) for reference number configuration.

See [Documents and Templates](https://helpwith.salesorder.com/setup/configuration/document-templates.md)[ ⛭](https://helpwith.salesorder.com/setup/configuration/document-templates.md) for document layout and template settings

### Invoicing Per Warehouse/Site

If you ship from multiple Warehouses or Sites, Salesorder can create Sales Invoices or Cash Sales for each location.&#x20;

{% hint style="info" %}
This functionality only works if the Sales Invoice (or Cash Sale) is raised from the Sales Order List, not from the document.&#x20;
{% endhint %}

<mark style="color:orange;">Setup > Configuration > Sales Invoice</mark>

To enable this functionality, check 'Create Invoice Per Warehouse' and Save.&#x20;

When this functionality is enabled, individual Sales Invoices will be created for each Warehouse/Site on the Sales Order.&#x20;

The first invoice is created for the first found Site/Warehouse on the line item table.&#x20;

Non-Stock Items will be included in the first invoice.&#x20;

While Kit Items can contain Non-Stock Items, these will not be divided on Sales Invoices and Cash Sales.&#x20;

#### Restrictions

The following items are not compatible with this functionality:&#x20;

* Percentage
* Subtotal
* Group Items

### Invoicing and insufficient stock levels

| Setting                           | Notes |
| --------------------------------- | ----- |
| Over allocate stock               |       |
| Do not allow document to be saved |       |
