683 B
683 B
v4.928.1.5.120 — delivered guard last-action invoice evidence
Hotfix for reconstructed opportunities where the detail page shows a completed SEND_INVOICE state but the delivered workflow guard cannot find the legacy task through tasks.opportunity_id.
Changes:
workflow_guard.get_workflow_context()now selectslast_action_codeandlast_task_id.- Invoice task lookup also checks
opportunities.last_task_id. - Adds a conservative fallback:
last_action_code=SEND_INVOICEcounts as invoice-sent evidence only when an invoice exists and no pending invoice-send task contradicts it. - Exposes
invoice_sent_last_action_evidencein the workflow context for debugging.