商品成本:拆单只取叶子订单行,剔除主单与中间汇总层 #458
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/chenxi-product-cost-leaf-orders"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
订单明细带 o_id / link_o_id,被其他行 link 到的 o_id(主单、中间汇总层)全部剔除,只保留末级发货行,再按仓库+商品编码汇总。样例 3311620970663051558 从 15 行(5 行空仓库)变为 10 行全部有仓库;7/8/9月重跑后明细 284,809/264,106/253,677。