修复商品成本残留组合父行与分单匹配 #596

Merged
chenxi merged 2 commits from fix/chenxi-product-cost-bundle-residual-parents into main 2026-10-26 14:57:45 +08:00
Collaborator

修复内容

  • 零数量旧组合父行不再占用父行唯一性判断。
  • 分单末级父行先按整单汇总,再与商品利润组件对账。
  • 当前父行平台 SKU 与旧组件 SKU 不一致时,仅在组件集合唯一且金额对平时替换。
  • 金额不一致或无可用组件的记录继续待核验,不自动强拆。

验证

  • StoreReceiptProductCostLineTest:41 项通过,159 个断言。
  • 已重跑 2026-07、08、09 商品成本。
  • 组合装待核验由 14 条降至 8 条;剩余 8 条均为金额无法对平或无法唯一匹配。
  • 验证订单:5126180365729036345、3316981188077112761、5127402782020093408、5127668712706037021。
## 修复内容 - 零数量旧组合父行不再占用父行唯一性判断。 - 分单末级父行先按整单汇总,再与商品利润组件对账。 - 当前父行平台 SKU 与旧组件 SKU 不一致时,仅在组件集合唯一且金额对平时替换。 - 金额不一致或无可用组件的记录继续待核验,不自动强拆。 ## 验证 - `StoreReceiptProductCostLineTest`:41 项通过,159 个断言。 - 已重跑 2026-07、08、09 商品成本。 - 组合装待核验由 14 条降至 8 条;剩余 8 条均为金额无法对平或无法唯一匹配。 - 验证订单:`5126180365729036345`、`3316981188077112761`、`5127402782020093408`、`5127668712706037021`。
chenxi added 1 commit 2026-10-26 14:57:10 +08:00
chenxi added 1 commit 2026-10-26 14:57:32 +08:00
chenxi merged commit d1ff01803b into main 2026-10-26 14:57:45 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#596
No description provided.