From 1675bcbedfbfdabd5e8cba4f7f10e0bfe5bc1aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 23 Feb 2026 17:14:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[quotes]=20BomCalculationResult=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=8D=BC=ED=8B=B0=EB=AA=85=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(materials=20=E2=86=92=20items,=20snake=5Fcase)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quotes/QuoteCalculationReport.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/quotes/QuoteCalculationReport.tsx b/src/components/quotes/QuoteCalculationReport.tsx index 2d08d017..56f2934d 100755 --- a/src/components/quotes/QuoteCalculationReport.tsx +++ b/src/components/quotes/QuoteCalculationReport.tsx @@ -41,18 +41,18 @@ export function QuoteCalculationReport({ return sum + locTotal; }, 0) || 0; - // 소요자재 내역 - BOM 자재 목록 (locations[].bomResult.materials)에서 가져옴 + // 소요자재 내역 - BOM 자재 목록 (locations[].bomResult.items)에서 가져옴 const materialItems = (quote.locations || []).flatMap(loc => - (loc.bomResult?.materials || []) + (loc.bomResult?.items || []) ).map((material, index) => ({ no: index + 1, - itemCode: material.itemCode || '-', - name: material.itemName || '-', + itemCode: material.item_code || '-', + name: material.item_name || '-', spec: material.specification || '-', quantity: Math.floor(material.quantity || 1), unit: material.unit || 'EA', - unitPrice: material.unitPrice || 0, - totalPrice: material.totalPrice || 0, + unitPrice: material.unit_price || 0, + totalPrice: material.total_price || 0, })); return (