This commit is contained in:
@@ -106,11 +106,14 @@ export async function POST(req: NextRequest, ctx: { params: Promise<{ id: string
|
||||
sequence,
|
||||
templateId: template?.id ?? null,
|
||||
name: body.name,
|
||||
kind: body.kind ?? "work",
|
||||
machineId: effectiveMachineId,
|
||||
settings: effectiveSettings,
|
||||
materialNotes: body.materialNotes ?? null,
|
||||
instructions: effectiveInstructions,
|
||||
qcRequired: effectiveQcRequired,
|
||||
// Dedicated inspection ops are always QC-on-close — force the flag on
|
||||
// at create time so downstream code doesn't have to special-case kind.
|
||||
qcRequired: (body.kind ?? "work") === "qc" ? true : effectiveQcRequired,
|
||||
plannedMinutes: body.plannedMinutes ?? null,
|
||||
plannedUnits: body.plannedUnits ?? null,
|
||||
qrToken,
|
||||
|
||||
Reference in New Issue
Block a user