# Preventing duplication of Ref. Doc. in Sales Orders

> Source: https://help.getedara.com/en/articles/10378894-preventing-duplication-of-ref-doc-in-sales-orders · Category: Settings › Sales · Last updated: 2026-05-04 · العربية: https://help.getedara.com/ar/articles/10378894-%D9%85%D9%86%D8%B9-%D8%AA%D9%83%D8%B1%D8%A7%D8%B1-%D8%A7%D9%84%D8%B1%D9%82%D9%85-%D8%A7%D9%84%D9%85%D8%B1%D8%AC%D8%B9%D9%8A-%D9%81%D9%8A-%D8%A3%D9%88%D8%A7%D9%85%D8%B1-%D8%A7%D9%84%D8%A8%D9%8A%D8%B9

Each sales order is assigned a unique number to facilitate its identification and tracking throughout the sales process. Similarly, searching within sales documents using the reference document number is based on the assumption that this number is unique to prevent potential errors.

To address this, "Edara" offers the ability to "Prevent Duplicate Ref. Doc.".

## Preventing duplication of Ref. Doc. in Sales Orders

1. Go to Settings.
2. Open the “Module Settings" page.
3. Navigate to “Transaction Header” under the “Sales” module.
4. Enable the “Prevent duplicate Ref. Doc.” setting.
5. Click “ **Save** ”.

![Preventing duplication of Ref. Doc. in Sales Orders — Click “Save”.](https://help.getedara.com/images/sales-settings/10378894/01.en.gif)

> **Note:** You can also apply this setting to purchase documents by following the steps outlined in the article, "[Prevent Duplicate Ref. Doc. in Purchase Orders](https://help.getedara.com/en/articles/5751414-preventing-duplication-of-ref-doc-in-purchase-orders)".

## Frequently asked questions

**Can I prevent duplicate reference numbers in purchase documents?**

You can also apply this setting to purchase documents by following the steps outlined in the article, "[Prevent Duplicate Ref. Doc. in Purchase Orders](https://help.getedara.com/en/articles/5751414-preventing-duplication-of-ref-doc-in-purchase-orders)".
