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
@@ -17,10 +17,10 @@ from app.models import (
|
||||
ChatLog,
|
||||
ChatSession,
|
||||
ShippingCustomer,
|
||||
ShippingInventoryField,
|
||||
ShippingInventoryRoutingRule,
|
||||
ShippingInventoryFile,
|
||||
ShippingInventoryRoutingRuleCondition,
|
||||
FreightRpaOnhandField,
|
||||
FreightRpaOnhandRoutingRule,
|
||||
FreightRpaOnhandReportFile,
|
||||
FreightRpaOnhandRoutingRuleCondition,
|
||||
ShippingNotice,
|
||||
ShippingOrderExtraction,
|
||||
ShippingOrderField,
|
||||
@@ -33,7 +33,7 @@ from app.models import (
|
||||
ShippingOrderSnapshotLine,
|
||||
ShippingOrderTask,
|
||||
ShippingTaskEvent,
|
||||
ShippingTaskInventoryLink,
|
||||
ShippingTaskOnhandLink,
|
||||
User,
|
||||
)
|
||||
from app.services.shipping_notice.match import match_notice_lines
|
||||
@@ -495,7 +495,7 @@ def test_rpa_pending_timeout_recheck_marks_task_needs_human_after_single_attempt
|
||||
db.session.add(
|
||||
ShippingTaskEvent(
|
||||
task_id=task.id,
|
||||
event_type="inventory_rpa_triggered",
|
||||
event_type="onhand_rpa_triggered",
|
||||
detail_json={"attempt": 1},
|
||||
created_at=datetime.utcnow() - timedelta(seconds=5),
|
||||
)
|
||||
@@ -509,9 +509,9 @@ def test_rpa_pending_timeout_recheck_marks_task_needs_human_after_single_attempt
|
||||
assert result["status"] == "needs_human"
|
||||
assert task.pending_human_reason == PH_RPA_EXHAUSTED
|
||||
assert task.pending_human_reason == PH_RPA_EXHAUSTED
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="inventory_rpa_failed").count() == 1
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="inventory_rpa_triggered").count() == 1
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="inventory_rpa_exhausted").count() == 1
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="onhand_rpa_failed").count() == 1
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="onhand_rpa_triggered").count() == 1
|
||||
assert ShippingTaskEvent.query.filter_by(task_id=task.id, event_type="onhand_rpa_exhausted").count() == 1
|
||||
assert len(list(trigger.glob("inventory_export_*.json"))) == 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user