683 B
683 B
v4928.1.5.119 — delivered guard accepts legacy invoice-send evidence
Fixes a delivered workflow guard mismatch where the opportunity detail page suggested CLOSE_OPPORTUNITY, but the /operations/delivered action remained blocked because the guard required normalized current invoice rows before accepting completed SEND_INVOICE tasks as invoice-sent evidence.
Changes:
- Broaden current invoice lookup in
workflow_guard.py. - Accept completed same-opportunity invoice-send tasks as local invoice-sent evidence even when legacy/imported invoice rows are not returned by the stricter current invoice query.
- Keep document-number matching when invoice rows are available.