|
@@ -977,9 +977,8 @@ def arrange_transport(
|
|
|
and plan.plan_type in ("inbound", "outbound")
|
|
and plan.plan_type in ("inbound", "outbound")
|
|
|
and payload.generate_dibang_plan
|
|
and payload.generate_dibang_plan
|
|
|
)
|
|
)
|
|
|
- should_sync_stop_dibang = use_multi_stop_dibang and any(
|
|
|
|
|
- item.generate_dibang for item in stop_dibang_options
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ # 有 stop 选项即同步:全 false 也要进 upsert,才能取消勾选 / 已过磅阻断
|
|
|
|
|
+ should_sync_stop_dibang = use_multi_stop_dibang and bool(stop_dibang_options)
|
|
|
|
|
|
|
|
if should_sync_stop_dibang or should_sync_legacy_dibang:
|
|
if should_sync_stop_dibang or should_sync_legacy_dibang:
|
|
|
try:
|
|
try:
|