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 (