> 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="/files/Bk73KFbQSQWREpGf0IuK" 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="/files/3th6EkoUYqMBd68l6izV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ifrFM9Iska1NbBgka6Qe" 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="/files/QLYT95YaCFb9z2DO3YFR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/qVWIwA0cOY6RDMVUnMuy" 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="/files/2Bu8pYigXibHZOaFqR7R" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/z8JZExfPWiTHW9cyJF6R" 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 dynamically by asking a question.

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

```
GET https://docs.xorosoft.com/xoroerp-1/sales/sales-order/sales-order-batch-centre/creating-a-sales-order-batch.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.
