feat(in-transit-transfer): 打通ERP 写路径按票执行与已执行调拨单卡片入口
- 新增 TransferDocument 按票执行模型与单据号序列生成(document_id 独立模块,迁移 tt0d/tt8b) - 发票行新增单位字段、matching_id 放宽可空,支持行与票两级执行口径(迁移 tt9c/tt1a) - capability_client 新增 create_transfer 写契约与六态结果裁决,执行链补写前复查门禁 - 抽取/匹配/执行 Job 按 run/item/match 拆分并入 jobs store 队列,transfer 队列单实例 worker 配套本地启动脚本 - 首页新增「已执行调拨单」四统计卡入口与明细列表子视图,重查/重试/关闭/重新触发与筛选分页齐全 - 行评估新鲜度 TTL 从 10 分钟放宽为当日有效(86400s),跨日由文件版本对账门禁兜底 - 同步 chat/errors 文案四语言、测试全家与两份实施计划文档
This commit is contained in:
1 parent
e750fa8602
commit
9f2b023a10
101 files changed
+11109
-2112
No files matched your search
@@ -12,7 +12,7 @@ import time
|
||||
import pytest
|
||||
|
||||
from app.services.in_transit_transfer.matching_service import create_matching, restore_matching
|
||||
from tests.services.in_transit_transfer.repo_fakes import make_transfer_deps
|
||||
from tests.services.in_transit_transfer.repo_fakes import make_transfer_deps, seed_rows_from_file
|
||||
|
||||
|
||||
def _bulk_file(count: int) -> dict:
|
||||
@@ -29,6 +29,7 @@ def _bulk_file(count: int) -> dict:
|
||||
"specification": "T-100",
|
||||
"movement_date": "2026-08-05",
|
||||
"quantity": "100",
|
||||
"unit": "PCS",
|
||||
"source_code": "DBS-AWSBI",
|
||||
})
|
||||
return {
|
||||
@@ -45,6 +46,7 @@ def test_bulk_matching_300_invoices(transfer_db):
|
||||
# 库存种子按 (料号, 拨出库位, 拨出批号) 三元组与文件行一一对应。
|
||||
erp.seed_stock(f"MAT-{index:04d}", "DBS-TRANSIT", f"LOT-BULK-{index:04d}", "100")
|
||||
|
||||
seed_rows_from_file("DBS-AWSBI", deps, "2026-08-06")
|
||||
started = time.perf_counter()
|
||||
summary = create_matching(source_codes=["DBS-AWSBI"], business_date="2026-08-06", deps=deps)
|
||||
elapsed = time.perf_counter() - started
|
||||
|
||||
Reference in new issue
Block a user