Inventory Transfer One-Way Sync: From Kingdee Direct Transfer to Jushuitan Other Outbound Orders
What This Strategy Solves
For a multi-warehouse retail business, Kingdee Cloud Skylight acts as the financial and inventory master, while Jushuitan runs the e-commerce front-end fulfillment. When stock moves between warehouses, Kingdee records a "direct transfer order," but Jushuitan's available stock is not refreshed in time, leading to overselling or duplicate shipments. We used the Qeasy data integration platform to push Kingdee direct transfer orders into Jushuitan in real time, automatically generating "other-outbound orders" so the e-commerce stock view stays consistent with the ERP.
Data Flow and Field Mapping
The flow is straightforward: Kingdee Cloud Skylight on the source side → the Qeasy middleware layer (handling code mapping, transformation, and validation) → Jushuitan on the target side.
Key field mapping:
| Business Meaning | Kingdee Source Field | Jushuitan Target Field | Notes |
|---|---|---|---|
| Document number | FBillNo | io_num | Add a prefix to avoid collisions |
| Document date | FDate | io_date | yyyy-MM-dd |
| Source warehouse | FOutStockId.FName | warehouse_out_id | Use code mapping |
| Target warehouse | FInStockId.FName | warehouse_in_id | Code mapping |
| Material code | FMaterialId.FNumber | sku_id | Centralized mapping |
| Quantity | FQty | qty | Two decimals |
| Remarks | FNote | remark | Pass-through |
Code mappings must be centrally maintained in Qeasy mapping tables, not scattered across scripts.
How to Configure in Qeasy
Integration object: select Kingdee Cloud Skylight "direct transfer order" as the source, Jushuitan "other-outbound order" as the target.
Fetch strategy: enable "incremental by last modified time." Set the start time to midnight of the go-live day. Run a full sync first, then switch to incremental.
Write strategy: Jushuitan other-outbound orders are split by shop and warehouse. Keep "auto-approve" off so documents enter draft status, allowing manual sampling before approval.
Code mapping: maintain warehouse, SKU, and customer mappings in three independent tables for easier operations.
Exception handling: network glitches, missing codes, and empty required fields should route to alert email, pending queue, and manual entry respectively. Never silently drop everything.
Implementation Steps
A phased approach is the safe route.
Phase 1: Full initialization. Before go-live, push all historical transfer orders once. In the Qeasy strategy, disable incremental mode, set explicit start and end times, then re-enable incremental.
Phase 2: Incremental anchor. After the full sync completes, align the incremental anchor to midnight of the go-live day. Before that, take a snapshot of source and target inventory as the reconciliation baseline.
Phase 3: Schedule frequency. For e-commerce, every 15 minutes works well; transfer volumes are small but time-sensitive. If the customer demands higher freshness, tighten to 5 minutes but watch Jushuitan API rate limits.
Phase 4: Header and body. Pushing header and body in one shot can cause partial writes. Split into two steps: push the header first, confirm success, then push the body, coordinated by document status transitions.
Phase 5: Monitoring and reconciliation. Run a daily reconciliation script comparing document numbers, amounts, and statuses on both sides; flag discrepancies for review.
Pitfalls from the Field
Pitfall 1: Warehouse codes hardcoded in scripts. On one project, warehouse mapping lived in if-else branches inside scripts. When Kingdee added a new warehouse, the script was not updated, and every transfer order failed. Centralize mappings in Qeasy tables so adding a warehouse is a one-line ops task.
Pitfall 2: Jushuitan default auto-approve. If the other-outbound order is auto-approved on the Jushuitan side, finance may see stock move minutes earlier than Kingdee, creating a brief inconsistency. Stay in draft status and use a scheduled job for unified approval.
Pitfall 3: Incremental anchor drift. Incorrect Kingdee system time or time-zone settings can push the anchor into the future or the past. Pin to UTC+8 and add a redundant start-time field in Qeasy as a safety check.
Pitfall 4: Header and body written in one call. When the header fails, Jushuitan may have already inserted part of the body. Split into two calls with a compensating transaction.
Pitfall 5: Ignoring reversals and returns. Transfer orders can later be reversed or returned, but the sync pipeline only pulls forward, leaving the target stock artificially high. Add reverse sync or filter by status on the source query.
When It Fits and When It Does Not
Fits: multi-warehouse e-commerce, ERP and e-commerce front-end separated, retail and distribution businesses needing real-time unified stock views. Does not fit: pure offline warehousing, no e-commerce front-end, or scenarios demanding two-way real-time sync. Bi-directional sync requires a separate conflict-resolution strategy not covered here.