Qeasy Cloud
Get Started

Sales Outbound Order Sync in Practice: End-to-End Implementation from Jushuitan to Kingdee Cloud Xingchen

· 高金凤· Integration Solutions· 35 views· 4 min read
Jushuitan金蝶云星辰销售出库单轻易云Incremental Sync供应链集成

What This Strategy Solves (Scenario and Value)

In one retail company, online sales orders originate from the front-end commerce system Jushuitan. Once the warehouse ships the goods, a sales outbound order must be created in Kingdee Cloud Xingchen to drive financial posting and inventory reduction. When both sides rely on manual exports, outbound documents are usually delayed by several hours, and at month-end reconciliation a few rows never match. This strategy automatically pushes Jushuitan sales outbound orders to Kingdee Cloud Xingchen through the Qeasy data integration platform, so that "outbound equals posting."

Data Flow and Field Mapping

End-to-end flow: Jushuitan (sales outbound order) → Qeasy integration platform (middleware for cleansing, mapping, and field enrichment) → Kingdee Cloud Xingchen (sales outbound order).

Key field mapping (de-sensitized sample, real fields depend on the customer's master data):

Business MeaningJushuitan Source (sample)Qeasy Middle LayerKingdee Target (sample)
Document numberio_id / io_noUnique keybill_no
Outbound timeio_date / modifiedNormalize to yyyy-MM-dd HH:mm:ssbusiness_date
Warehouse codewarehouseWarehouse master mappingstock_code
Customer codecustomer_idCustomer master mappingcustomer_code
Item codesku_idItem master mappingmaterial_code
Outbound qtyqtyNumeric validation, negative checkqty
Tax-inclusive pricepriceUnified to 4 decimalsprice
Tax-inclusive amountamountamount = qty × price recheckamount

The middle layer matters here: the two systems use different code systems, and Kingdee keeps its own internal codes for customers, items, and warehouses. A direct connection would fail. Qeasy centralizes "source code → target code" mapping so future master data adjustments only touch one place.

How to Configure on Qeasy

On the Qeasy data integration platform we usually build a strategy in four steps:

  1. Source connection: configure the Jushuitan open API call and clarify the pull scope (document status, modified time). Only documents in "shipped" or "completed" status should flow downstream; pull drafts and you will pollute the target.
  2. Target connection: configure the save interface on Kingdee Cloud Xingchen side and prepare the document type (sales outbound order), organization, and voucher template.
  3. Field mapping and scripts: do one-to-one mapping in Qeasy's mapping canvas. For critical numerics like amount and qty, use the built-in scripts to recheck and align precision. For code fields, use the master mapping table to convert.
  4. Exception handling: configure retry, alert notifications (DingTalk or WeCom webhook), and a fallback "exception data pool" — failed documents go to the pool first, then a human reviews and repushes.

Implementation Steps

We run this strategy in three phases to stay safe:

  • Phase 1: align the incremental start point. Run one full reload of Jushuitan sales outbound orders "completed in the last 7 days" first. Once both sides match, switch to daily incremental. The incremental start timestamp is taken from the moment the full reload finishes.
  • Phase 2: full reload triggers. Daily run is incremental only. But during big promotions (618, Double 11) or after a large master data change on Kingdee, manually trigger a full reload to pick up boundary documents that were missed.
  • Phase 3: schedule frequency. Default incremental runs every 5–10 minutes, depending on the customer's tolerance for delay. After warehouse close time we slow the cadence, and run one "stray document cleanup" in the early morning.

On dependencies, this strategy must run after "item sync" and "customer sync" because the document references those foreign keys. We use Qeasy's "dependency configuration" to attach upstream master data strategy nodes; when upstream fails, downstream is skipped automatically.

Lessons Learned

  1. Classic mistake: treating "shipped" as "settled". Jushuitan outbound order status has several flavors; pulling only "shipped" causes the same document to be pushed again when it later becomes "completed". The safe pattern is to add deduplication in Qeasy, using source document number + final status as the dedup key, or just pull "completed" only.
  2. Amount decimal drift. Jushuitan prices commonly keep 2 decimals while Kingdee defaults to 4, so a direct push leaves 0.01 differences. The safe pattern is to force unified precision in the middleware script and recheck "amount = qty × price"; anything that deviates beyond a threshold goes to the exception pool.
  3. Missing warehouse or customer master. The easiest crash is starting to push documents before Kingdee-side masters exist — the API rejects the document. We recommend running the "item → material" and "customer" master strategies first in Phase 1 and reconciling before pushing orders.
  4. Handling split shipments. When one sales order ships in multiple waves, Jushuitan splits it into multiple outbound orders; the consolidated sales order number must stay consistent when pushed to Kingdee, otherwise the order cannot be fully queried there. We use the Qeasy pattern "header and body in two stages": the header aggregates by sales order, the body expands by actual outbound order.
  5. Incremental watermark drift. If a schedule run fails and the timestamp does not advance, the next round may pull duplicates. We rely on Qeasy's built-in "watermark management": failed runs do not advance the timestamp; the timestamp advances only after a successful backfill.

When This Applies and When It Does Not

Applies: retail or distribution companies whose front end is Jushuitan (commerce ERP) and back end is Kingdee Cloud Xingchen for financial posting, with high outbound volume and minute-level latency tolerance. Does not apply: both ends being the same system, or cross-border multi-org multi-currency scenarios — those need a heavier transformation layer that is out of scope for a single strategy.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-jushuitan-kingdee-cloud-9521-n0b00bcef-cb2fa531

Comments