feat(shipping-notice): 收敛订单处理状态与履约门禁
This commit is contained in:
1 parent
bffcd55b40
commit
70dd0051b8
153 files changed
+10916
-4296
No files matched your search
@@ -92,10 +92,13 @@ def _should_requeue_waiting_external_result(task_no: str) -> bool:
|
||||
|
||||
if not task_is_active(task):
|
||||
return False
|
||||
pending_reason = str(task.pending_human_reason or '').strip()
|
||||
from app.services.shipping_notice.process_gate_projection import task_blocking_reason
|
||||
pending_reason = str(task_blocking_reason(task) or '').strip()
|
||||
from app.services.shipping_notice.inventory_file_store import has_ready_inventory_file_for_task
|
||||
|
||||
return (
|
||||
pending_reason == PH_RPA_PENDING
|
||||
and not task.inventory_lines_json
|
||||
and not has_ready_inventory_file_for_task(task)
|
||||
) or pending_reason == PH_UPLOAD_RPA_PENDING
|
||||
|
||||
|
||||
@@ -107,7 +110,8 @@ def _requeue_external_wait_job(task_no: str, *, job: Job | None = None) -> None:
|
||||
from app.services.shipping_notice.query_service import get_task_by_ref
|
||||
|
||||
task = get_task_by_ref(task_no)
|
||||
if task and str(task.pending_human_reason or '').strip() == PH_RPA_PENDING:
|
||||
from app.services.shipping_notice.process_gate_projection import task_blocking_reason
|
||||
if task and str(task_blocking_reason(task) or '').strip() == PH_RPA_PENDING:
|
||||
from app.services.shipping_notice.inventory_rpa_workflow import next_inventory_rpa_recheck_at
|
||||
|
||||
scheduled_at = next_inventory_rpa_recheck_at(task)
|
||||
|
||||
Reference in new issue
Block a user