---
title: "Stock Transfer between Warehouses"
space: "Easyecom_integration"
url: "https://incirco.frappe.cloud/EasyEcom_Integration/stock-transfer-between-warehouses"
updated: "2026-01-29"
---

The below swimlane diagram describes how the transaction flow will happen when stock is transferred between warehouses in ERPNext. 

**![](https://lh3.googleusercontent.com/MTHVMMQysAptuNKAeUv1Ji4DFIVd0BcwoCbSB866_sAP4ijEmITfAlzJ3by6dSJiHTX5P4vDJFEFiB2C_rqlvhcdl27nkMgNh7BQHJFpO_r-gEjtGI1GveXA8A5MhutrbPZaHrjPdSd8081Jv0bUA1I)**


> *****
> 
> * Upon submission of Internal Sales Invoice in ERPNext, PO in EasyEcom will be created
> * Based on defined ‘Target Warehouse’, the PO will be created in mapped warehouse as per EasyEcom setting in ERPNext
> * The PO number of ERPNext will reflect in ‘Ref Number’ in EasyEcom PO
> 


>   
> **^**
> 
> * If the ‘Source Warehouse’ is mapped with EasyEcom, then create STN in source EasyEcom WH
> * If the ‘Source Warehouse is NOT mapped with EasyEcom, then create PO in target EasyEcom WH
> 


> **^^**
> 
> * If STN is created then GRN will be done in target warehouse of STN in EasyEcom
> * If PO is created then GRN will be done same warehouse where the PO is created in EasyEcom
> 


> **^^^**
> 
> * ‘Complete GRN’ webhook from EasyEcom will be triggered upon completion of QC & Shelving
> 


> ******
> 
> * When the ‘Complete GRN’ webhook is triggered, the ERPNext purchase receipt will be created directly in this use case.
> 

