feat(shipping-notice): 实现滚动履约功能,优化发货通知流程与代码清理

清理废弃的ShippingCase相关代码与依赖,统一使用ShippingNotice直接关联客户数据。调整库存网关依赖规则,支持仅对库存满足或已人工放行的订单行生成发货Excel,实现滚动履约逻辑。
This commit is contained in:
hugo committed 2026-08-26 02:47:07 +08:00
1 parent 7cfd5d167e
commit 1e5aedb9ed
235 files changed
+11394 -9613

No files matched your search

+1 -1
View File
@@ -251,7 +251,7 @@ def freeze_test_task_order_snapshot(task: "ShippingNotice") -> None:
from app.models import ShippingOrderCustomerMatch, ShippingOrderExtraction
db.session.flush()
extraction = db.session.get(ShippingOrderExtraction, task.current_order_extraction_id)
customer = getattr(getattr(task, 'shipping_case', None), 'customer', None)
customer = getattr(task, 'customer', None)
if extraction is not None and customer is not None and ShippingOrderCustomerMatch.query.filter_by(
extraction_id=extraction.id, role='bill_to',
).one_or_none() is None: