@@ -28,6 +28,7 @@ export async function GET(_req: NextRequest, ctx: { params: Promise<{ id: string
|
||||
select: {
|
||||
code: true,
|
||||
name: true,
|
||||
qty: true,
|
||||
project: { select: { code: true, name: true } },
|
||||
},
|
||||
},
|
||||
@@ -39,7 +40,11 @@ export async function GET(_req: NextRequest, ctx: { params: Promise<{ id: string
|
||||
|
||||
const data: OperationCardData = {
|
||||
project: op.part.assembly.project,
|
||||
assembly: { code: op.part.assembly.code, name: op.part.assembly.name },
|
||||
assembly: {
|
||||
code: op.part.assembly.code,
|
||||
name: op.part.assembly.name,
|
||||
qty: op.part.assembly.qty,
|
||||
},
|
||||
part: {
|
||||
code: op.part.code,
|
||||
name: op.part.name,
|
||||
|
||||
Reference in New Issue
Block a user