---
title: " Delivery Note Import"
space: "Integrations"
url: "https://integrations.frappe.cloud/integrations/ecommerce-integration/unicommerce/delivery-note-import"
updated: "2026-09-08"
---

When an order is dispatched in Unicommerce, ERPNext can create the corresponding **Delivery Note** automatically, keeping fulfilment status accurate without manual entry.

## Enabling the import

In the **Delivery Note Settings** section, tick:


| Field                                                  | What it does                                                                  |
| ------------------------------------------------------ | ----------------------------------------------------------------------------- |
| **Import Delivery Notes from Unicommerce on Shipment** | Creates a Delivery Note against the Sales Order when the order is dispatched. |


![Delivery Note Settings - import Delivery Notes when an order is dispatched.](/files/delivery-notes.png)

*Delivery Note Settings: import Delivery Notes when an order is dispatched.*

## What happens

```
order dispatched in Unicommerce
  → the next order sync detects the shipment
  → a Delivery Note is created against the linked Sales Order
  → stock is issued from the mapped facility's warehouse
```

Because the Delivery Note is linked back to its Sales Order, ERPNext's fulfilment status stays consistent with Unicommerce.

## If the import is left disabled

The setting does not decide *whether* stock moves, only *which document moves it*. Stock is  
always reduced exactly once.


| Setting  | Document that reduces stock | How                                                                                                                                                 |
| -------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enabled  | Delivery Note               | The Sales Invoice is created with **Update Stock** off, and the Delivery Note issues the stock when the shipment is dispatched.                     |
| Disabled | Sales Invoice               | The Sales Invoice is created with **Update Stock** already ticked, so submitting it issues the stock immediately. No Delivery Note is ever created. |


With the import disabled, the scheduled Delivery Note job exits immediately and no shipment data is fetched. Fulfilment is therefore recorded at the point of invoicing rather than at the point of dispatch, and the Sales Order shows as delivered once the invoice is submitted.

## When a Delivery Note is not created

- The order has no linked Sales Order in ERPNext yet so the Delivery Note is created on a later sync, once the Sales Order exists.
- The order's channel is disabled, so the order is not synchronised at all.
- The order has not actually moved to a dispatched state in Unicommerce.

> **Note:** A Unicommerce order remains in **Ready To Ship** until it is handed to the courier and marked dispatched. The Delivery Note is created only once the order reaches the dispatched state, not while it is still ready to ship.

## Walkthrough

![](/files/SyncOldOrderFlowzoomed.mp4.mp4)