Pushing Jackyun Sales Orders to Yonyou NCC: A Single-Strategy Deep Dive into Free-Goods Sales Order Sync
What This Strategy Solves
In one real retail project, the online e-commerce warehouse ships free gifts (also called “gift-only orders”) together with customer parcels. These free-goods sales orders exist fully in Jackyun, but the finance side requires them to flow into Yonyou NCC's blue-letter sales order process so that revenue recognition, cost accounting, and invoicing conventions stay consistent. What we delivered is a single-point strategy: push Jackyun free-goods sales documents into Yonyou NCC blue-letter sales orders under a fixed set of rules.
What looks like “document movement” is hard in practice: free goods carry no revenue but still need to count as shipment, and the tax-inclusive/exclusive amounts need careful handling, plus the handoff with the third-party cloud warehouse has to be precise. The value of running this on the Qeasy (轻易云) data-integration platform is that scattered interface work is consolidated into one observable, replayable, and auditable sync unit.
Data Flow and Field Mapping
The overall direction is: Jackyun → Qeasy middleware → Yonyou NCC. Jackyun is the source of truth for the business event; Yonyou NCC is the financial and accounting target; the middleware handles cleaning, mapping, enrichment, and replay.
Key field mapping (simplified):
| Business Meaning | Jackyun (Source) | Qeasy Middleware | Yonyou NCC (Target) |
|---|---|---|---|
| Document number | Sales order no. | Pass-through | Document no. |
| Document date | Order time | Normalized to date | Document date |
| Customer code | Customer ID | Lookup in mapping table | Customer master code |
| SKU code | SKU ID | Lookup in mapping table | Inventory code |
| Quantity | Sold qty | Preserve | Quantity |
| Tax-inclusive / exclusive amount | Tax-inclusive amount | Zero or offset per free-goods rule | Price-tax total, tax-exclusive amount |
| Tax rate | Default | Pass-through | Tax rate |
| Warehouse | Outbound warehouse | Lookup in mapping table | Inventory org warehouse |
| Doc type | Sales order | Tagged as free goods | Sales order (blue) |
Centralized mapping management is a common pattern among Qeasy customers: customer, SKU, and warehouse code mappings live in the middleware, so a change on either end only requires a single edit, never a strategy rewrite.
How to Configure on Qeasy
In the strategy configuration screen, work through these points in order:
- Source connector: choose Jackyun, configure app credentials and the available interface scope, and use the “Sales Order (Free Goods)” entry point. Make sure the filter condition includes a free-goods flag or doc-type tag so normal orders are not pulled in.
- Target connector: choose Yonyou NCC, configure tenant access and interface authorization, set the write target to “Sales Order (Blue)”, and disable the non-zero validation on tax-inclusive amounts in the preset fields.
- Field mapping: build the mapping per the table above; bind amount fields to the free-goods rule expression; bind code fields to the centralized mapping table.
- Idempotency and deduplication: use “source doc no. + line no.” as the unique key so re-triggers skip writes and avoid dirty-data accumulation.
- Failure handling: enable retry and a human-in-the-loop channel; set retry caps and intervals based on business volume. A common Qeasy pattern is to split out “third-party cloud warehouse acknowledgment failures” for easier post-mortem.
Implementation Steps
We usually split rollout into three phases to avoid one-shot risk:
Phase 1 — Incremental baseline. Pick a clear cutoff timestamp in Jackyun (e.g. after 00:00 of a specific date) and take only new orders from there. The goal of this phase is to validate connectivity and field mapping, getting a minimal viable path running.
Phase 2 — Full-volume trigger. Once incremental is stable, fire a one-time full backfill over a business-defined window (e.g. the last 30 days of free-goods orders). Running full and incremental in parallel is a common Qeasy pattern — keep the full task as a safety net after completion and run only incremental in steady state.
Phase 3 — Schedule and monitoring. Free-goods orders rarely spike but are tightly coupled to shipment timing, so a 5–15 minute sync interval is appropriate — close to real-time without stressing the source system. Wire three baseline metrics — order count, success rate, average latency — into a visual dashboard.
A staged header-then-line rollout is the safe approach: ship the header first to verify customer, date, and warehouse are correct, then open up line items. This avoids a single line failure bringing the entire document into an invalid state.
Pitfalls and Lessons Learned
- Mixing free-goods and normal orders at the source. This is where things break — without a source-side filter, amount fields get contaminated and finance reconciliation fails immediately. The safe pattern is to make the source filter explicitly carry the free-goods flag and double-check with “doc type” on the target side.
- Missing customer or SKU mapping. A typical mistake is writing the source code directly into Yonyou NCC, where the master has no matching record, so the document is rejected by default. Build a complete mapping table in the middleware and raise an alarm for missing entries — never silently skip.
- Third-party cloud warehouse acknowledgment latency misinterpreted as sync failure. Free-goods outbound depends on warehouse confirmation; blindly retrying can turn short delays into apparent business exceptions. Configure a longer timeout and tiered alerting specifically for warehouse acknowledgments.
- Re-sending documents already pushed during full backfill. Without an idempotency key, finance will see duplicate documents and month-end close gets messy. Always dedupe in the middleware and run a doc-number reconciliation check after the full task completes.
- Copying the normal sales order amount logic for free goods. The “no revenue, but counted as shipment” rule must be expressed explicitly in the middleware — never reuse a generic sales-order amount calculation script.
Applicable and Non-Applicable Scenarios
Applicable: e-commerce businesses that ship free gifts and need to bring the gifting behavior into financial accounting; organizations already using Jackyun as the front end and Yonyou NCC as the accounting back end.
Not applicable: scenarios where free-goods logic is too complex to handle with per-SKU/customer/campaign differentiation; or pure in-house use cases where Yonyou NCC is the only business entry point and there is no cross-system data movement.