From b8dcb69e47f6a06912d102fe7818a2fcd0189a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 19 Feb 2026 11:18:01 +0900 Subject: [PATCH] =?UTF-8?q?feat(WEB):=20=EC=88=98=EC=A3=BC=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20frameCount=EC=97=90=20rootNodes=20=EC=88=98?= =?UTF-8?q?=EB=9F=89=20=ED=95=A9=EA=B3=84=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ApiOrder 인터페이스에 root_nodes_sum_quantity 필드 추가 - frameCount 매핑: root_nodes_sum_quantity 우선, fallback으로 quantity 사용 --- src/components/orders/actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/orders/actions.ts b/src/components/orders/actions.ts index ce4b5f04..671e6259 100644 --- a/src/components/orders/actions.ts +++ b/src/components/orders/actions.ts @@ -21,6 +21,7 @@ interface ApiOrder { client_contact: string | null; site_name: string | null; quantity: number; + root_nodes_sum_quantity: number | null; supply_amount: number; tax_amount: number; total_amount: number; @@ -539,7 +540,7 @@ function transformApiToFrontend(apiData: ApiOrder): Order { productName: apiData.items?.[0]?.item_name ?? undefined, receiverAddress: apiData.options?.shipping_address ?? undefined, receiverPlace: apiData.options?.receiver_contact ?? undefined, - frameCount: apiData.quantity ?? undefined, + frameCount: apiData.root_nodes_sum_quantity ?? apiData.quantity ?? undefined, // 상세 페이지용 추가 필드 (API에서 매핑) manager: apiData.client?.manager_name ?? undefined, contact: apiData.client_contact ?? apiData.client?.phone ?? undefined,