mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 10:23:11 +00:00
chore(work-orders): remove ticket keys from completion docs
This commit is contained in:
parent
09636ef590
commit
4e54aa7cfe
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue