# Do not allow duplicate Party Order No. for the same Party.

**YouTube:** [How to Restrict Duplicate Party Order Numbers for the Same Party in Sales Orders?](https://www.youtube.com/watch?v=hymXQxGI_Es)

## How to Restrict Duplicate Party Order Numbers for the Same Party in Sales Orders?

This tutorial explains how to enable the **“Do not allow duplicate Party Order No. for the same Party”** feature in Logic ERP. This validation ensures that each customer’s order number remains unique, preventing duplication and maintaining data accuracy.

***

### **Objective of This Feature**

* Prevent duplicate **Party Order Numbers** for the same customer
* Maintain unique order references
* Avoid confusion in order tracking
* Improve data accuracy and control

***

#### **Access to Sales Order Configuration**

* Navigate to **Sales Order Module**
* Click on **Configuration**
* Select the relevant **Sales Order Configuration**
* Locate and enable the option labeled as:

> **“Do not allow duplicate Party Order No. for the same Party”**

<figure><img src="/files/2DvdPbN1JcyCEZW9PPxP" alt=""><figcaption></figcaption></figure>

* Click **Save**

***

### **Implement in Sale Order**

**Attempt Duplicate Entry**

* Click on **New Order**
* This ensures updated settings are applied
* Select an existing **Customer/Party**
* Enter an already used **Party Order Number**
  * Example: *1122*

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

* Proceed to save the Sales Order

**System Validation**

* System restricts saving
* Displays message:
  * *Party Order Number already exists for the same customer*

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

***

### **Enter Unique Order Number**

**Correct Action**

* Change the **Party Order Number**
* Enter a **unique value**

**Result**

* Sales Order is successfully saved

***

### **Key Benefits**

* Ensures unique order identification
* Prevents duplicate entries
* Improves tracking and reporting
* Enhances data accuracy

***

### **Best Practice Tips**

* Always use structured and unique order numbering
* Train users to avoid reusing order numbers
* Combine this with other validations for better control

***

### **Final Outcome**

* Duplicate Party Order Numbers are restricted
* Each customer order remains unique
* Sales Order data becomes more reliable
* Overall system accuracy and efficiency are improved


---

# 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://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/sale-order/so-configuration/do-not-allow-duplicate-party-order-no.-for-the-same-party..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.
