feat: Track 打通已完成/已入库/已出库状态闭环与外部联动
- 完工转交入库同步 status=COMPLETED;MOM 入库/出库回调同步 status - 新增 mom-outbound webhook(发货出库标记已出库),lookup 返回 material_id - VALID_OVERALL_STATUS 新增已出库;update_overall_status 同步 status 字段 - WIP 矩阵区分已入库/待仓库收货;虚拟节点正确处理已出库/转入在库人
This commit is contained in:
@ -845,7 +845,9 @@ async def transfer_task(
|
||||
if product:
|
||||
if has_warehouse and not real_branches:
|
||||
product.current_location_id = VIRTUAL_WAREHOUSE
|
||||
product.overall_status = "在库"
|
||||
product.overall_status = "待仓库收货"
|
||||
# 双字段同步:完工转交入库 → 产品标记为已完成(MOM 扫码实收后才变已入库)
|
||||
product.status = "COMPLETED"
|
||||
elif real_branches:
|
||||
product.current_location_id = real_branches[0][1]
|
||||
if not task.parent_task_id or task.task_type in ("TRANSFER", "RECOVERY"):
|
||||
|
||||
Reference in New Issue
Block a user