feat(freight-rpa): 库存/收料改名在手/入站,报表归属RPA,类名统一FreightRpa
把 shipping 侧 inventory/receipt 词根迁到 onhand/inbound,29 张表与 枚举/权限/前端/i18n 同步改名;在手与入站报表配置及文件改由 freight_rpa 持有,发货与调拨仅按 source_code 消费;ORM 类加 FreightRpa 前缀, 上传动作改为 freight_rpa_upload。含类名与上传动作改名规格文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ffc0d4a430
commit
39fe3c05f2
453 files changed
+17945
-8646
No files matched your search
@@ -4,7 +4,7 @@ backend/tests/test_shipping_projection_cross_surface.py
|
||||
用途:跨面一致性契约——15 阶顺序、OT stage 同步与密度窗口共享同一投影真相。
|
||||
依赖:progress_audit_contract、order_task_service、frontend progressWindow 对齐的 BE 语义。
|
||||
逻辑:阶段码集合一致;sync_order_task_processing_state 写入的 stage 必须属于
|
||||
SHIPPING_PROCESSING_STAGES;inventory_source_resolving 在 waiting_review 之前。
|
||||
SHIPPING_PROCESSING_STAGES;onhand_source_resolving 在 waiting_review 之前。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -65,7 +65,7 @@ def test_stage_mapping_rejects_checkpoint_legacy_keys():
|
||||
current_gate={'gate_code': 'task_creation', 'status': 'invalidated'},
|
||||
blocking_reason={'code': 'gate_invalidated'},
|
||||
has_candidate_context=True,
|
||||
processing_stage='inventory_matching',
|
||||
processing_stage='onhand_matching',
|
||||
)
|
||||
assert result['lifecycle_stage'] == 'fulfillment_prep'
|
||||
assert result['lifecycle_authority'] == 'processing_stage'
|
||||
@@ -75,9 +75,9 @@ def test_fifteen_stages_inventory_source_before_review():
|
||||
"""库存源解析必须排在人工复核与建单之前(跨面共用同一有序元组)。"""
|
||||
stages = list(SHIPPING_PROCESSING_STAGES)
|
||||
assert len(stages) == 15
|
||||
assert stages.index('inventory_source_resolving') < stages.index('waiting_review')
|
||||
assert stages.index('onhand_source_resolving') < stages.index('waiting_review')
|
||||
assert stages.index('waiting_review') < stages.index('order_creating')
|
||||
assert stages.index('inventory_matching') < stages.index('excel_generating')
|
||||
assert stages.index('onhand_matching') < stages.index('excel_generating')
|
||||
assert 'email_parsing' in EML_ONLY_PROCESSING_STAGES
|
||||
assert 'email_adjudicating' in EML_ONLY_PROCESSING_STAGES
|
||||
|
||||
@@ -107,12 +107,12 @@ def test_sync_order_task_stage_must_be_processing_stage(app):
|
||||
|
||||
sync_order_task_processing_state(
|
||||
order_task,
|
||||
stage='inventory_matching',
|
||||
stage='onhand_matching',
|
||||
status='processing',
|
||||
)
|
||||
db.session.commit()
|
||||
|
||||
refreshed = db.session.get(ShippingOrderTask, order_task.id)
|
||||
assert refreshed.stage == 'inventory_matching'
|
||||
assert refreshed.stage == 'onhand_matching'
|
||||
assert refreshed.stage in SHIPPING_PROCESSING_STAGES
|
||||
assert int(refreshed.progress_version or 0) >= 2
|
||||
Reference in new issue
Block a user