Qeasy Cloud
Get Started

Syncing Sales Outbound Red-Letter Vouchers as Other Inbound Vouchers to Wangdiantong: A Practical Single-Strategy Guide from Yonyou U8

· 尹春锐· Integration Solutions· 25 views· 4 min read
WDT用友U8供应链集成销售出库红字单轻易云

What This Strategy Solves

A real-world retail scenario: after an offline store processes a sales return, Yonyou U8 generates a sales outbound voucher marked as red-letter, which finance uses to reverse revenue and cost. The e-commerce side in Wangdiantong, however, needs this physical inflow recorded as an "other-inbound voucher"; otherwise OMS available stock, warehouse ledgers, and after-sales reports will all drift out of sync. We use the Qeasy Data Integration Platform to carry this link, steadily translating red-letter outbound vouchers into OMS-side other-inbound vouchers so that inventory semantics stay consistent on both sides.

Data Flow and Field Mapping

Data flows from Yonyou U8 to Wangdiantong, with Qeasy acting as the transformation layer in between. The table below shows the key field mapping; codes, units, and warehouses are the three areas where things most often go wrong.

Business MeaningYonyou U8 Source Field (Sales Outbound Red-Letter Voucher)Qeasy Intermediate LayerWangdiantong Target Field (Other-Inbound Voucher)
Voucher No.Voucher code (with a "-" prefix marking red-letter)Strip prefix and append a date stamp to avoid duplicatesExternal voucher No.
Voucher dateAudit dateFormat as ISO 8601Voucher time
Red/blue flagRed-letter quantity is negativeTake absolute value and tag as "return"Quantity (positive) + remark
Item codeInventory code (U8 internal code)Translate via code mapping table to OMS SKUItem code
WarehouseWarehouse codeWarehouse mapping table (U8 warehouse ↔ OMS warehouse)Warehouse No.
Batch No.Batch fieldPass through; empty if missingBatch No.
OperatorCreated-by userPass throughOperator

Note: source and target system names are generalized to "Yonyou U8" and "Wangdiantong" per desensitization rules; specific account sets and endpoint addresses are intentionally omitted.

How to Configure in Qeasy

The configuration revolves around three blocks: source extraction → transformation → target write. We use the Qeasy Data Integration Platform as the middle layer, focusing on transformation rules and mapping-table management.

Source (Yonyou U8)

  • Select the matching U8 adapter as the data source type and choose the "Sales Outbound Voucher" archive.
  • Extraction filter: Voucher Type = Sales Outbound AND Red/Blue Flag = Red-Letter AND Audit Date ≥ last sync watermark.
  • Pagination parameter: 50–100 records per page is recommended to avoid triggering timeouts on large pulls.

Transformation Layer

  • Code mapping: build an independent "U8 Inventory Code ↔ OMS SKU" mapping table and centralize it inside Qeasy. When new items are onboarded later, you only edit the table, not the flow—this is one of the most common patterns among Qeasy customers.
  • Warehouse mapping: when U8 warehouses do not equal OMS warehouses, use a warehouse mapping table for translation instead of hardcoding inside each strategy.
  • Header and body in phases: write the header first, confirm the external voucher No. is unique, then push the body line by line. This is friendly for breakpoint resumption.

Target (Wangdiantong)

  • Pick the "Other-Inbound Voucher" endpoint of Wangdiantong · Qiye Qimen.
  • The idempotency key uses "external voucher No. + warehouse + SKU" so the target system can automatically deduplicate on repeated pushes.
  • Recommended retry policy: 3 attempts with exponential backoff to avoid Wangdiantong's rate-limit window.

Implementation Steps

We recommend a three-phase rollout: incremental start point → full backfill → steady-state scheduling.

Phase 1: Incremental Start Point

  1. Create source and target data source connections inside Qeasy and run connectivity self-tests.
  2. Pull the most recent 7 days of audited red-letter outbound vouchers for a small-batch validation, focusing on code mapping and quantity sign handling.
  3. Set the first sync window to T-1 full-day data as the "watermark baseline."

Phase 2: Full Backfill

  1. Use Qeasy's "one-time backfill" task to catch up historical un-synced red-letter vouchers by month.
  2. After each batch, use Qeasy's built-in "reconciliation view" to compare voucher No. lists on both sides and manually re-push the differences.
  3. Pause steady-state scheduling during backfill to avoid conflicts with the backfill batch.

Phase 3: Scheduling Frequency

  • Poll every 15 minutes, using the audit timestamp field on Yonyou U8 for incremental logic.
  • Run a "full reconciliation patrol" once daily at 23:00 to catch omissions and differences from newly added code mappings.
  • Enable Qeasy's alert channel: notify the enterprise WeChat group when voucher failure rate exceeds 2%.

Lessons Learned (Pitfalls)

  1. Not taking the absolute value of the red/blue flag: pushing negative numbers straight to OMS causes Wangdiantong validation failures and full-batch rollbacks. The safe approach is to standardize absolute values in the transformation layer and write "return" in the remark.
  2. Code mappings scattered across multiple strategies: today you add a product in one place, tomorrow in another, and three months later the two sides no longer match. Centralizing mappings inside Qeasy's mapping table is the path summarized by a manufacturing enterprise's IT team as the most hassle-free option.
  3. Duplicate external voucher No.: when the same U8 voucher No. is re-pushed or manually re-transmitted, duplicate inbound vouchers get generated on the OMS side. Always deduplicate in the transformation layer and design an idempotency key.
  4. One-to-many warehouse codes: when one U8 warehouse maps to multiple OMS bins and the mapping table doesn't specify a priority, writes land in random bins. The mapping table must specify a "primary bin + secondary bin."
  5. Backfill and incremental running concurrently: if steady-state scheduling opens before historical backfill completes, overlapping time windows cause duplicate vouchers. Run the two phases serially, and start scheduling only after backfill is done.

Suitable and Unsuitable Scenarios

Suitable: offline store sales returns that need to flow back into OMS inventory; U8 and Wangdiantong inventory counts must agree; audit requirements demand traceability of red-letter vouchers. Unsuitable: pure online e-commerce order returns (should be handled directly by the OMS after-sales module); cross-entity stock transfers (require transfer vouchers, not other-inbound vouchers); real-time sub-second inventory sync (red-letter vouchers follow an audit flow, so latency is on the order of minutes).

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-u8-8272-211-u8-21fd63a1

Comments