商品成本:订单内有带仓库行时丢弃空仓库汇总行 #464

Merged
chenxi merged 1 commits from fix/chenxi-product-cost-wh-priority into main 2026-10-22 22:49:07 +08:00
Collaborator

订单组内存在带仓库行时,空仓库的汇总/占位行丢弃;带仓库行全部 Cancelled 时整单不计。7月空仓库订单 424→217,8月 501→281,9月 462→208。

订单组内存在带仓库行时,空仓库的汇总/占位行丢弃;带仓库行全部 Cancelled 时整单不计。7月空仓库订单 424→217,8月 501→281,9月 462→208。
chenxi added 1 commit 2026-10-22 22:48:59 +08:00
- 订单组内只要存在带仓库(wms_co_id≠0)的行,空仓库的汇总/占位行全部丢弃
- Cancelled 行改为在组内判断后排除:带仓库行全部取消时整单不计,避免空仓库汇总行残留
- 叶子行判断基于完整订单行(含 Cancelled),保证拆单层级正确
chenxi merged commit 0893f3d8d3 into main 2026-10-22 22:49:07 +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#464
No description provided.