# Creating Priority Codes

Priority Codes help ensure that the most urgent orders are fulfilled first. Creating priority codes involves the priority code details, such as name, code, number, and color. Once the priority code is created, it can be assigned to the waves and used to determine the picking process.

{% hint style="info" %}
To create the priority code, go to Menu > Warehouse > Picking > Priority Code
{% endhint %}

In the Priority Code module, enter the following details:

* **Name:** This field allows you to enter the name for the priority code, such as "High", "Low", "Medium", etc.
* **Code:** This field allows you to enter a code that acts as a unique identifier for the priority code.&#x20;
* **Priority Number:** This field allows you to enter a numerical value to determine the order of importance for the priority. The higher the number, the higher the priority.&#x20;
* **Color Hex:** This field allows you to enter a hexadecimal code and add a color to associate and represent the priority code. For example, you can use "#FF0000" for High Priority (red), "#FFFF00" for Medium Priority (yellow), "#00FF00" for Low Priority (green). Alternatively, you can click on the color box to select the color for the priority code.

After filling in the details, click "Save" to create the priority code.

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

### Assigning Priority Codes

You can assign priority codes when creating auto-waves. To assign the priority code, go to the sales order and initiate auto-wave.&#x20;

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

On the "Create Wave" page, you can select the priority code from the "Priority Code" dropdown option.&#x20;

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

Select the priority code and click "Confirm & Create Wave" to create the wave and assign the priority to the wave.

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


---

# Agent Instructions: 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/warehouse/picking/priority-code/creating-priority-codes.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.
