feat(shipping-notice): 实现滚动履约功能,优化发货通知流程与代码清理
清理废弃的ShippingCase相关代码与依赖,统一使用ShippingNotice直接关联客户数据。调整库存网关依赖规则,支持仅对库存满足或已人工放行的订单行生成发货Excel,实现滚动履约逻辑。
This commit is contained in:
1 parent
7cfd5d167e
commit
1e5aedb9ed
235 files changed
+11394
-9613
No files matched your search
@@ -14,7 +14,7 @@ import pytest
|
||||
|
||||
from app import db
|
||||
from app.models import (
|
||||
FileAsset, ShippingCase, ShippingCustomer, ShippingCustomerShadowMatch,
|
||||
FileAsset, ShippingCustomer, ShippingCustomerShadowMatch,
|
||||
ShippingCustomerShadowResolution, ShippingCustomerSite, ShippingOrderCandidate,
|
||||
ShippingOrderDocument, ShippingOrderIntake, ShippingOrderExtraction, ShippingOrderField,
|
||||
ShippingOrderFieldDecision, ShippingOrderFieldValue, ShippingOrderSchema,
|
||||
@@ -154,9 +154,6 @@ def test_accepted_field_value_resolves_customer_without_mail_header_bypass(app):
|
||||
)
|
||||
_intake, candidate = _seed_candidate(sender='spoof@example.net')
|
||||
_attach_value(candidate, version, field, 'buyer@wyc.example.com')
|
||||
case = ShippingCase(case_no='CASE-SHADOW')
|
||||
db.session.add(case)
|
||||
|
||||
resolution = refresh_candidate_shadow_resolution(candidate)
|
||||
|
||||
assert resolution.status == 'unique_candidate'
|
||||
@@ -164,7 +161,6 @@ def test_accepted_field_value_resolves_customer_without_mail_header_bypass(app):
|
||||
assert resolution.identity_rule_set_id == rule_set['id']
|
||||
assert resolution.evidence_json[0]['context_field_id'] == field.id
|
||||
assert resolution.evidence_json[0]['source']['kind'] == 'field_value'
|
||||
assert case.customer_id is None and case.business_no is None
|
||||
|
||||
|
||||
def test_schema_uuid_drift_keeps_stable_customer_identity_rule_matching(app):
|
||||
|
||||
Reference in new issue
Block a user