feat(in-transit-transfer): 落地证据流重解析并纳入货代与排程配套改动
外部单号进入异动档自然键,圈档按 T-2 成熟封顶,当前归档可单独重解析。同批带上 Crane 禁整页刷新、ODM 白名单降级、排程抽屉与执行记录日期窗,以及 YAML 库存源下线。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
911afa0f73
commit
4c2a7e2a23
145 files changed
+11695
-4214
No files matched your search
@@ -700,6 +700,8 @@ def dbs_ready_file() -> dict:
|
||||
rows 使用 movement 领域字段键(doc_no/material_code/quantity/movement_date),
|
||||
与真实仓库 movement_file_repository 产出一致(B5 接线后 run_matching 按
|
||||
parse_movement_rows 解析);sheet/row_no 为解析必带溯源字段。
|
||||
【T−2 成熟封顶 2026-10-21】rows 异动日期取 2026-08-04(= 业务日 08-06 的
|
||||
T−2 恰好成熟边界);更晚日期(T−1/当天)已被圈档封顶排除,不得再作夹具日期。
|
||||
"""
|
||||
return {
|
||||
"source_code": "DBS-AWSBI",
|
||||
@@ -712,13 +714,13 @@ def dbs_ready_file() -> dict:
|
||||
"rows": [
|
||||
{"sheet": "Receipt", "row_no": 10, "doc_no": "HOM-001", "lot_no": "LOT-10", "material_code": "MAT-001",
|
||||
"material_name": "连接器组件", "specification": "A 型 / 24PIN",
|
||||
"movement_date": "2026-08-05", "quantity": "500", "unit": "个", "source_code": "DBS-AWSBI"},
|
||||
"movement_date": "2026-08-04", "quantity": "500", "unit": "个", "source_code": "DBS-AWSBI"},
|
||||
{"sheet": "Receipt", "row_no": 11, "doc_no": "HOM-001", "lot_no": "LOT-10", "material_code": "MAT-001",
|
||||
"material_name": "连接器组件", "specification": "A 型 / 24PIN",
|
||||
"movement_date": "2026-08-05", "quantity": "700", "unit": "个", "source_code": "DBS-AWSBI"},
|
||||
"movement_date": "2026-08-04", "quantity": "700", "unit": "个", "source_code": "DBS-AWSBI"},
|
||||
{"sheet": "Receipt", "row_no": 20, "doc_no": "HOX-002", "lot_no": "LOT-20", "material_code": "MAT-002",
|
||||
"material_name": "控制器组件", "specification": "标准型 / 48V",
|
||||
"movement_date": "2026-08-05", "quantity": "1200", "unit": "PCS", "source_code": "DBS-AWSBI"},
|
||||
"movement_date": "2026-08-04", "quantity": "1200", "unit": "PCS", "source_code": "DBS-AWSBI"},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -728,6 +730,7 @@ def crane_ready_file() -> dict:
|
||||
"""当日 ready 收料全量文件(CRANE-SZ),独立来源。
|
||||
|
||||
rows 使用 movement 领域字段键,与真实仓库产出一致(B5 接线后)。
|
||||
异动日期=T−2 成熟边界(见 dbs_ready_file 注释)。
|
||||
"""
|
||||
return {
|
||||
"source_code": "CRANE-SZ",
|
||||
@@ -740,14 +743,14 @@ def crane_ready_file() -> dict:
|
||||
"rows": [
|
||||
{"sheet": "Inbound", "row_no": 5, "doc_no": "WTP-008", "lot_no": "LOT-8", "material_code": "MAT-200",
|
||||
"material_name": "传感器模组", "specification": "SZ-8 / IP67",
|
||||
"movement_date": "2026-08-05", "quantity": "600", "unit": "PCS", "source_code": "CRANE-SZ"},
|
||||
"movement_date": "2026-08-04", "quantity": "600", "unit": "PCS", "source_code": "CRANE-SZ"},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def same_day_inbound_file() -> dict:
|
||||
"""含业务日期当天异动数据的文件(成熟规则已退役:当天数据正常进匹配)。
|
||||
"""含业务日期当天异动数据的文件(T−2 成熟封顶 2026-10-21:当天未成熟不匹配)。
|
||||
|
||||
rows 使用 movement 领域字段键,与真实仓库产出一致(B5 接线后)。
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user