> 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/admin/warehouse/wave-template-rule/creating-wave-template-rules.md).

# Creating Wave Template Rules

A wave template rule consists of two primary components: header fields and criteria. The header fields provide essential information about the rule, while the criteria define the conditions under which the rule is applied.

{% hint style="info" %}
To create a wave template, go to **Menu > Admin > Warehouse > Wave Template**
{% endhint %}

### **Creating a Wave Template Rule**

Creating a wave template involves entering the header-level information, such as rule name, store detail, wave template, and description. Once the basics are set, you can proceed to define the template rule criteria.&#x20;

#### Entering the header details

To set up a wave template rule, you'll need to start by entering the header level details.&#x20;

<figure><img src="/files/dqVoyY64cnEwD6mLvjH7" alt=""><figcaption></figcaption></figure>

#### Wave Template Rule Header Fields

<table><thead><tr><th width="275">Field </th><th>Description</th></tr></thead><tbody><tr><td>Create A Wave Template Rule</td><td>Enter the name of the rule in this field that acts as a unique identifier for the rule.</td></tr><tr><td>For Store</td><td>This field allows you to select the store for which the rule will be applicable.</td></tr><tr><td>Select Wave Template</td><td>This field allows you to select the wave template that should be used if the rule's criteria are met.</td></tr><tr><td>With Description</td><td>Enter a brief description of the wave template rule, aiding in documentation and clarity.</td></tr><tr><td>Max Wave Size</td><td>This field allows you to enter the maximum size of the wave that can be created under this rule. This parameter helps in managing workload and ensuring waves are not too large to handle efficiently.</td></tr></tbody></table>

#### Adding Wave Template Rule Criteria

Once you've entered the header level details, it's time to add the wave template rule criteria. This is where you define the specific conditions that must be met in order for the wave template rule to be applied.

Click on the "Add Criteria" under the "Add Criteria" section to define the criteria for the rule.

<figure><img src="/files/mYJvPOz2gO0cz2P2QyZH" alt=""><figcaption></figcaption></figure>

* **Type**: Select the attribute or field that the criterion is based on. The options include order type, order class, order tags, customer, ship to city, ship to state, and ship to country.
* **Operator**: Select the logical operator to compare the type with the value.
* **Value**: This field allows you to define the precise condition or pattern you want to match to trigger the rule.

Once you have saved the criteria, click "Save" at the top-right of the module to create the template rule.

<figure><img src="/files/Le9Z0jl1EWs7yRAH6WmB" alt=""><figcaption></figcaption></figure>

When creating a wave, if the criteria are met, the rule will be applied to the wave and the inventory will be allocated accordingly.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.xorosoft.com/xoroerp-1/admin/warehouse/wave-template-rule/creating-wave-template-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
