# If Imported Document already exists

**YouTube:** [How to Globally Configure Overwrite Rules for Imported Stock Transfer Document?](https://www.youtube.com/watch?v=z8Ur3Hm19_4)

## How to Globally Configure Overwrite Rules for Imported Stock Transfer Document?

In this tutorial, we will explore an important **global option in Logic ERP** that helps prevent **duplicate entries** when importing stock documents.

***

### Configure Duplicate Entry Handling

* Open **Logic Admin**.
* Navigate to **Global Settings** and then select **Import/Export Settings**.
* Locate the option labeled as:

> **“If Imported Document already exists”**.

* This option provides three modes of operation:
  * **Prompt (Default)**
  * **Override without Prompting**
  * **Skip without Prompting**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FDMsyHbIfNGFnPu8DcsZ4%2FGlobal%20Asmin.png?alt=media&#x26;token=7bfca5e0-4b73-449f-8c1b-3b15554dd2a5" alt=""><figcaption></figcaption></figure>

* Save the settings and **restart the software** for changes to take effect.

***

### Understanding Each Option

#### **Prompt (Default Mode)**

* Behavior: If a document already exists, the system **displays a confirmation prompt** when attempting to re-import it.
* Example:
  * Go to **Utilities → Import Stock Transfer Document**.
  * Try importing a stock transfer that was already imported.
  * The system immediately triggers a **message**:\
    \&#xNAN;*“This voucher from the respective branch has already been transferred.”*

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FmjDm1zAfJgZa2nrft04V%2FPrompt.png?alt=media&#x26;token=06a99e17-922b-40c1-a198-c6eb182fbd2c" alt=""><figcaption></figcaption></figure>

***

#### **Override without Prompting**

* Behavior: The system **automatically replaces existing data** without any confirmation.
* Example:
  * In the **Head Office**, create a stock transfer with a **quantity of 4**, then export it.
  * Import it into the **Maduka branch**.
  * Back in Head Office, update the same document to **quantity 10** and re-export.
  * Import again in Maduka.
  * Result → The system directly **overrides the old data**, updating the quantity to **10** without showing any prompt.

***

#### **Skip without Prompting**

* Behavior: The system **ignores duplicate entries** silently and does not update the existing data.
* Example:
  * In Head Office, update the same stock transfer to **quantity 20** and re-export.
  * Import it into the Maduka branch.
  * Result → The import runs silently, but the quantity remains at **10**, confirming that the system **skipped the duplicate entry**.

***

### Key Benefits

* Ensures **data accuracy** by controlling duplicate imports.
* Provides **flexibility** with three handling modes (Prompt, Override, Skip).
* Helps avoid **manual errors** and **duplicate stock mismatches** across branches.
