Qeasy Cloud
Get Started

Sync Offline Sales Outbound Orders from Jushuitan to Kingdee Cloud Cosmos: A Practical Breakdown of a Single Strategy

· 冯潇· Integration Solutions· 63 views· 4 min read
JushuitanKingdee Cloud销售订单同步供应链集成私有化轻易云

What this strategy solves

A retail enterprise uses Jushuitan for store outbound operations and Kingdee Cloud Cosmos for finance and inventory accounting. Every day, a large volume of offline sales outbound orders are generated in Jushuitan, and the finance team needs to see the outbound flow in real time on the Kingdee side for bookkeeping. The problem is that codes, organizations, and customer records on both ends do not correspond one-to-one, and manual export creates breakpoints with no traceability. This article explains how to use the Qeasy integration platform as a middle layer to reliably push Jushuitan's offline sales outbound orders to Kingdee Cloud Cosmos, with a single strategy covering an entire business flow.

Data flow and field mapping

The overall flow is: Jushuitan (source) → Qeasy (middle layer, for cleansing, mapping, and incremental merging) → Kingdee Cloud Cosmos (target).

Key field mapping example:

Business meaningJushuitan (source)Kingdee Cloud Cosmos (target)Handling
Order numberio_id / io_noFBillNoDirect mapping, rewrite per target rules if needed
WarehousewarehouseFStockIdConvert to FNumber via encoding mapping table
Customershop_idFCustIdResolve via customer archive mapping table
Materialsku_idFMaterialIdResolve via material mapping table
QuantitynumFQtyWrite after unit conversion
Outbound dateio_dateFDateNormalize date format
RemarksremarkFNoteTruncate and filter special characters

In Qeasy, centralized encoding mapping management is a common practice: put warehouse, customer, and material mappings into a unified mapping table, which can be reused by other outbound strategies, avoiding the situation where one change needs to be made in many places.

How to configure on Qeasy

  1. Create a strategy: select Jushuitan·Qimen as the source, Kingdee Cloud Cosmos as the target, and choose "Sales Order Sync" as the business module.
  2. Authentication: use the application credentials under the source/target system tenant, and maintain the authentication information uniformly in Qeasy's connector.
  3. Data fetching method: the source side fetches audited offline sales outbound orders by "incremental by document time + document status filtering" to avoid pushing draft documents downstream.
  4. Field mapping: configure source-target correspondence in the visual mapping canvas, and attach scripts for complex fields for unit conversion and code translation.
  5. Header-body phasing: push the header (master document) first, and then push the body (line items) after success, linking them with dependency nodes in the strategy orchestration. This is one of the common response patterns of Qeasy customers, allowing the upstream document to be set up on the target side first, and then the lines to be supplemented.
  6. Write strategy: the target side uses a "save and commit" batch write interface, with failure retry; the idempotency key uses the source document number, and the target system side enables duplicate check.
  7. Exception handling: configure a unified exception channel; document-level failures do not block the entire batch, and failed documents enter the queue for manual troubleshooting.

Implementation steps

Incremental starting point: on the night of go-live, pull all offline sales outbound orders in the last 30 days from the source as a baseline, and then switch to the incremental cursor by io_date after landing.

Full trigger: schedule a full replay during business low periods (such as early morning) for reconciling account-physical consistency; it is recommended to keep it as a fallback, but not to replace daily incrementals.

Scheduling frequency: according to the density of offline store order printing, a common setting is a round every 5-15 minutes; it can be compressed to 3 minutes during peak periods, but note the source API rate limit and target batch write window. Another common response pattern of Qeasy customers is "incremental and full dual-track": daily incrementals run in real time, and full loads do difference comparison daily, supplementing missed orders when found.

Go-live is divided into three phases:

  1. Shadow period: dual-write without taking effect, source and target data are independent of each other, running for a week to compare differences;
  2. Trial run: target documents enter a queryable state, and finance samples and checks on the Kingdee side;
  3. Formal switchover: stop manual export and hand over all to Qeasy.

Pitfall recap

  1. Loose document status filtering: pushing draft or pending documents leads to "lines without amounts" on the Kingdee side or being unapproved. The safe practice is to only take documents with status=approved on the source side, and do secondary verification in the middle layer.
  2. Encoding mappings scattered in scripts: warehouse/customer/material translations are written in each strategy, and changing once after three months requires changes in dozens of places. The typical mistake is to hard-code mapping logic into transformation scripts; the correct approach is to centralize them in the Qeasy mapping table and reuse them across all outbound strategies.
  3. Incremental cursor uses creation time: Jushuitan has a back-order scenario, using created_at will miss orders; switching to io_date (business occurrence time) is more stable.
  4. Pushing header and body together: when failing, the entire document rolls back, and repeated retries drag down downstream. It is recommended to phase headers and bodies, push line items only after the document header succeeds, and refine retry granularity to the line level.
  5. Time window and time zone: the default time zone of Jushuitan is inconsistent with Kingdee, and cross-day documents often fall on the wrong date. The middle layer uniformly normalizes according to "business date + UTC+8", and specifies the time zone strategy.

Applicable and non-applicable scenarios

Applicable: enterprises with large daily offline store orders, needing finance accounting and inventory bookkeeping on the Kingdee side, and able to establish stable mappings between the archives on both ends. Non-applicable: pure online e-commerce business (should use the corresponding strategy), scenarios where the target side needs a complex approval flow and cannot batch write, and situations where the source document state machine is unstable and the data itself needs to be governed before sync.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-jushuitan-kingdee-cloud-2514-ne1af6772-96d7828e

Comments