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
@@ -16,7 +16,7 @@ from app.core.errors import ConflictError
|
||||
from app.models import (
|
||||
ShippingCustomer,
|
||||
ShippingNoticeLine,
|
||||
ShippingNoticeLineInventoryMatch,
|
||||
ShippingNoticeLineOnhandMatch,
|
||||
)
|
||||
from app.services.shipping_notice.shipping_notice_creation_service import (
|
||||
create_shipping_notice_after_inventory_gate,
|
||||
@@ -37,9 +37,9 @@ def _seed_customer(snapshot):
|
||||
|
||||
def _seed_match_row(order, snap_line, *, match_result='matched', shortage='0'):
|
||||
"""给冻结行补一条当前匹配事实(matched+ready 表示门禁可过)。"""
|
||||
db.session.add(ShippingNoticeLineInventoryMatch(
|
||||
db.session.add(ShippingNoticeLineOnhandMatch(
|
||||
task_id=order.id, snapshot_line_id=snap_line.id, line_no=snap_line.line_no,
|
||||
line_index=snap_line.position, match_result=match_result, inventory_status='ready',
|
||||
line_index=snap_line.position, match_result=match_result, onhand_status='ready',
|
||||
required_qty='10', available_qty='10', shortage_qty=shortage,
|
||||
reservation_id=snap_line.reservation_id, part_number=snap_line.part_number,
|
||||
is_current=True,
|
||||
@@ -96,5 +96,5 @@ def test_whole_order_notice_rejected_when_all_lines_closed(app):
|
||||
# 断言:结案剔除后目标行集为空,整单调用走门禁未通过分支(与 match_completed 口径一致)。
|
||||
with pytest.raises(ConflictError) as exc_info:
|
||||
create_shipping_notice_after_inventory_gate(fixture.order)
|
||||
assert exc_info.value.code == 'SHIPPING.INVENTORY_GATE_NOT_PASSED'
|
||||
assert 'SHIPPING.INVENTORY_GATE_NOT_PASSED' in repr(exc_info.value)
|
||||
assert exc_info.value.code == 'SHIPPING.ONHAND_GATE_NOT_PASSED'
|
||||
assert 'SHIPPING.ONHAND_GATE_NOT_PASSED' in repr(exc_info.value)
|
||||
Reference in new issue
Block a user