mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 19:32:06 +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;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
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);
|
await patchFieldAsync(row.id, { status: "Completed" }, saved.row);
|
||||||
} catch {
|
} catch {
|
||||||
// The document is saved; the table mutation already surfaced the status error and
|
// 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";
|
} from "@/domain/work-orders/utils/wo-closability";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SH-115 / SH-341: completion is manual with confirmation, except that generating the
|
* Completion is manual with confirmation, except that generating the completion document
|
||||||
* completion document completes the WO — but only when the SH-114 closability gate passes
|
* completes the WO — but only when the closability gate passes on the persisted row.
|
||||||
* on the persisted row. Not-required (NN) and drafts never complete; Past Due rows must be
|
* Not-required (NN) and drafts never complete; Past Due rows must be
|
||||||
* rescheduled before any status change, so they are left for the dispatcher.
|
* rescheduled before any status change, so they are left for the dispatcher.
|
||||||
*/
|
*/
|
||||||
export function shouldCompleteAfterCompletionDoc(
|
export function shouldCompleteAfterCompletionDoc(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue