> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FP0nDJvI6HwLzrmqbwdRG%2FCNF.png?alt=media&amp;token=654a34f2-680f-4e69-929a-519004d81920" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FNLEvjHFxgVDsWyhWFD0q%2FM.png?alt=media&amp;token=79c7c03b-9d4f-4144-a741-3a37ad9628d3" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FqyBufNV0yqahEg0YN0an%2FPrompt.png?alt=media&amp;token=f4569f94-5a70-4916-8c0e-d37ac5acd0ed" 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
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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
