chore(work-orders): remove ticket keys from completion docs

This commit is contained in:
Codex Review Integration 2026-09-16 16:56:26 -03:00
parent 09636ef590
commit 4e54aa7cfe
2 changed files with 4 additions and 4 deletions

View file

@ -118,7 +118,7 @@ export function useWorkOrdersListPage() {
return;
}
try {
// SH-341: generation is the one automatic completion — no confirmation dialog.
// Generation is the one automatic completion — no confirmation dialog.
await patchFieldAsync(row.id, { status: "Completed" }, saved.row);
} catch {
// The document is saved; the table mutation already surfaced the status error and

View file

@ -6,9 +6,9 @@ import {
} from "@/domain/work-orders/utils/wo-closability";
/**
* SH-115 / SH-341: completion is manual with confirmation, except that generating the
* completion document completes the WO — but only when the SH-114 closability gate passes
* on the persisted row. Not-required (NN) and drafts never complete; Past Due rows must be
* Completion is manual with confirmation, except that generating the completion document
* completes the WO — but only when the closability gate passes on the persisted row.
* Not-required (NN) and drafts never complete; Past Due rows must be
* rescheduled before any status change, so they are left for the dispatcher.
*/
export function shouldCompleteAfterCompletionDoc(