# 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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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.
