Import ClientFlow production v4928.1.5.132.4

This commit is contained in:
plx
2026-07-29 13:11:01 +00:00
parent 6445044ac6
commit 261d342057
405 changed files with 48373 additions and 1401 deletions

View File

@@ -0,0 +1,9 @@
# 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 selects `last_action_code` and `last_task_id`.
- Invoice task lookup also checks `opportunities.last_task_id`.
- Adds a conservative fallback: `last_action_code=SEND_INVOICE` counts as invoice-sent evidence only when an invoice exists and no pending invoice-send task contradicts it.
- Exposes `invoice_sent_last_action_evidence` in the workflow context for debugging.