Guanyi Purchase Receipt Sync to Kingdee Cloud Cosmos: Qualified Goods to Sales Warehouse
What This Strategy Solves
In the supply chain integration of a retail enterprise, the purchase receipt is the key voucher connecting upstream suppliers and downstream sales warehouses. Guanyi Cloud, as the front-end e-commerce and procurement receiving system, records physical receipts and qualified-goods decisions; Kingdee Cloud Cosmos handles financial accounting and sales outbound. The two systems need to align the meaning of the same receipt: qualified goods from Guanyi must go into the sales warehouse in Kingdee, while defective goods go elsewhere.
If you simply push the whole receipt over, after three months the inventory ledgers on each side will inevitably fight out. Pushing the document in one shot looks easy, but if the three boundaries—warehouse type, batch number, and qualified quantity—are not handled correctly, unmatched remainders will accumulate in the inventory ledger.
Our approach on the customer site is: first push the document to a middle layer, hosted on the Qeasy Data Integration Platform, split out the lines by qualified-goods rules, then write to Kingdee Cloud Cosmos. This ensures ledger-to-physical consistency and keeps the rules centralized.
Data Flow and Field Mapping
The overall flow is one-way: Guanyi Cloud (source) → Qeasy middle layer → Kingdee Cloud Cosmos (target).
Key field mapping:
| Business Meaning | Guanyi Cloud (Source) | Middle Layer | Kingdee Cloud Cosmos (Target) |
|---|---|---|---|
| Document No. | Receipt No. | Pass-through | Document No. |
| Supplier | Supplier Code | Centralized code mapping | Supplier Code |
| Warehouse Type | Warehouse Code + Goods Status | Filter by qualified goods | Sales Warehouse Code |
| Item Code | Product Code | Code mapping table | Material Code |
| Quantity | Qualified Quantity | Take qualified qty only | Received Quantity |
| Unit Price/Amount | Tax-Inclusive Price | Field rename | Unit Price |
| Batch No. | Batch No. | Pass-through | Batch No. |
| Document Date | Business Date | Format normalization | Business Date |
Code mapping should be centrally maintained in Qeasy's Mapping Management module to avoid scattering across scripts.
How to Configure in Qeasy
Strategy basics: Name the strategy by business semantics, e.g., "Guanyi Purchase Receipt → Kingdee Purchase Receipt (Qualified Goods → Sales Warehouse)", so the boundary is clear at a glance during troubleshooting.
Source configuration: Select the Guanyi Cloud account, configure access credentials; default the time window to pull a recent range to avoid overwhelming the source system with historical data in one go.
Target configuration: Select the Kingdee Cloud Cosmos organization and the sales warehouse; choose the purchase receipt save or audit interface.
Data processing: This is the key step.
- Extraction filter: restrict to goods status = qualified, or lines where quantity > 0 and flagged as qualified;
- Field mapping: configure per the table above; the focus is fixing the warehouse code to the target sales warehouse;
- Code conversion: centrally map supplier, item, and warehouse codes; Qeasy mapping tables can be reused across multiple strategies;
- Line filtering: if a line's qualified quantity is 0, drop it directly rather than pushing it and then rejecting it on the target side.
Exception handling: Qeasy supports per-line error recording; document-level failures do not block the entire batch. Failed documents are routed to a pending list for manual fallback.
Implementation Steps
Step 1: Align the incremental starting point Agree with the customer on a common incremental start time; data after this point is synced, while historical data goes through a separate bulk channel.
Step 2: Full trigger For stock data before the start point, run Qeasy's full trigger once, then reconcile inventory on both systems.
Step 3: Scheduling frequency Receipts require relatively high real-time performance; pulling every 10–30 minutes is recommended; if business volume is low, align to clock hours. Qeasy's scheduler supports cron expressions and triggers based on source-side status changes.
Step 4: Post-launch inspection Reconcile daily in the first week to confirm qualified quantity, sales warehouse inventory, and document status are consistent; switch to weekly reconciliation after stabilization.
Pitfall Review
Pitfall 1: Qualified goods not flagged in the source system In one engagement, the source system had no "qualified goods" field; qualification was maintained in a separate QC module. The reliable solution is to associate QC results in Qeasy via custom queries rather than requiring source-system modifications.
Pitfall 2: One-to-many warehouse codes One physical warehouse in Guanyi may map to multiple business warehouses in Kingdee (sales, defective, pending). Mapping directly by physical warehouse code causes document warehouse confusion on the Kingdee side. Our approach is to dynamically select the target warehouse in Qeasy based on the qualified-goods decision rather than hard-coding it.
Pitfall 3: Code mapping buried in scripts Earlier we wrote mappings directly into converters, so adding one supplier meant changing scripts in many places. A common Qeasy customer pattern is to centralize code mapping so a single change applies across all strategies.
Pitfall 4: Header and body pushed together, hard to roll back Some teams write the header and body in one shot, so failures roll back the whole document. We split into two phases: write the header first, then the body on success; either stage can be retried independently, giving finer rollback granularity.
Pitfall 5: Incremental start point and full-volume boundary not separated A typical mistake is intermixing full-volume backfill after the incremental start point, causing duplicate pushes on both sides. The mature Qeasy customer pattern is the dual-track model: incremental and full-volume run as independent schedules without interfering with each other.
Applicable and Non-Applicable Scenarios
Applicable: Retail or distribution enterprises where Guanyi is the procurement receiving front-end and Kingdee is the financial and sales back-end; with qualified/defective goods split; requiring sales warehouse inventory to reflect in real time.
Not applicable: bidirectional document sync required; qualified-goods logic completed on the Kingdee side; source system lacks a stable document status-change timestamp, making incremental sync infeasible.