> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/sales/sales-order/sales-order-batch-centre/creating-a-sales-order-batch.md).

# Creating a Sales Order Batch

### Overview

The Sales Order Batch functionality allows users to group multiple Sales Orders into a single batch for streamlined processing and management. The grouping of orders is controlled through the **Sales Batch Creation Criteria** app configuration, ensuring that only compatible orders are included in the same batch.

***

### App Configuration Requirement

Before creating a Sales Order Batch, ensure that the following configuration is set:

1. **Sales Batch Creation Criteria**

**Location:** Menu → App Config → **General** → **Sales Batch Creation Criteria**

**Functionality:**                                                                                                                                                                  This&#x20;

* This configuration determines how Sales Orders are grouped into batches.&#x20;
* Multiple options can be selected, and the system will group Sales Orders into the same batch only when all selected criteria match.

**Available Options:**

* Store
* Currency
* Customer

By default, all parameters are selected in the app configuration.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FuQBbVw8Nd1ScqvTYaDDS%2Fimage.png?alt=media&amp;token=20a784a7-64b0-4c4c-b6d5-93a165d591ee" alt=""><figcaption></figcaption></figure>

***

### Workflow

**Step 1:** Navigate to **Menu → App Config → General → Sales Batch Creation Criteria** and select the parameters (e.g., **Store**, **Currency**, **Customer**) that should be used to group **Sales Orders**.

**Step 2: Now, g**o to **Sales Order Centre that** displays all existing Sales Orders. Select the **Sales Orders** that you want to include in the batch and click on the **Options dropdown menu**.&#x20;

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F8vOwVkRBw1HvNexT8DyB%2Fimage.png?alt=media&amp;token=ffab56ab-693e-4e79-b902-78d4c322970d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F7T71NHKmrfPMv7IL7uss%2Fimage.png?alt=media&amp;token=a2a257a8-39a2-487d-ae42-6d4380df8341" alt=""><figcaption></figcaption></figure>

**Step 3:** Click on **Generate Sales Order Batch**. A confirmation dialog box will appear displaying the message: *"It will generate batch sales order for all the selected sales order(s)."*

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FENnNW9ondAsUzXiJBRU1%2Fimage.png?alt=media&amp;token=c99c0227-5b55-4d64-b8cc-0d7082e5f77a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FVTpYPeGpUzkbWaHnz1F4%2Fimage.png?alt=media&amp;token=7b355eab-510b-4064-be63-54195c208b20" alt=""><figcaption></figcaption></figure>

**Step 4:** The system evaluates the selected Sales Orders based on the configured criteria.

* If the criteria match, a single batch is created and becomes visible in the **Sales Order Batch Centre**.

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FJUeT8gRQTUq3rZVIn1Fn%2Fimage.png?alt=media&amp;token=0dc1a602-067e-4e89-ab18-b16fb1755c6b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FXuOb2DWGfNelBNcAuESH%2Fimage.png?alt=media&amp;token=48a6bb7b-9de7-4b30-b923-46d0e7ad896b" alt=""><figcaption></figcaption></figure>

* If the criteria do not match, **separate batches are created** for each Sales Order.
* If no criteria are selected in the **app configuration**, the system creates a single batch containing all selected orders.

***

### Validation Rules

1. Sales Orders that are already part of an existing batch **cannot be added to a new batch**.
2. **Orders in Shipped, Partially Shipped status** and **Closed** statuses cannot be generate into a batch.
3. If a batch contains **multiple customers**, the **Customer Name and Customer Account#** fields will display **comma-separated values** in the batch header.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xorosoft.com/xoroerp-1/sales/sales-order/sales-order-batch-centre/creating-a-sales-order-batch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
