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,