// 완제품 BOM 구조 정의
import type { ItemMaster } from '../components/contexts/DataContext';

export function addProductBomStructures(items: ItemMaster[]) {
  // ===== 스크린 제품 BOM 구조 (인덱스 0~4) =====
  
  // FG-SCR-001 (소형 스크린 1000x2000)
  if (items[60]) { // 스크린 완제품 시작 인덱스
    items[60].bom = [
      { childItemCode: 'SF-SCR-F01', childItemName: '스크린 원단', quantity: 2.0, unit: 'M2', quantityFormula: 'W*H/1000000', note: '1000x2000' },
      { childItemCode: 'SF-SCR-F02', childItemName: '가이드레일 (좌)', quantity: 2.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F03', childItemName: '가이드레일 (우)', quantity: 2.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F04', childItemName: '상부 케이스', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-F05', childItemName: '하부 바텀바', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-M01', childItemName: '모터 (0.75KW)', quantity: 1, unit: 'EA', quantityFormula: '', note: '소형용' },
      { childItemCode: 'SF-SCR-C01', childItemName: '제어반 (표준)', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-S01', childItemName: '감지기 세트', quantity: 1, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-W01', childItemName: '권취축', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-B01', childItemName: '브라켓 세트', quantity: 1, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-SW01', childItemName: '스위치 BOX', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-B002', childItemName: '볼트 M10x40', quantity: 20, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N002', childItemName: '너트 M10', quantity: 20, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-W002', childItemName: '와셔 M10', quantity: 20, unit: 'EA', quantityFormula: '', note: '' },
    ];
  }
  
  // FG-SCR-002 (중형 스크린 2000x3000)
  if (items[61]) {
    items[61].bom = [
      { childItemCode: 'SF-SCR-F01', childItemName: '스크린 원단', quantity: 6.0, unit: 'M2', quantityFormula: 'W*H/1000000', note: '2000x3000' },
      { childItemCode: 'SF-SCR-F02', childItemName: '가이드레일 (좌)', quantity: 3.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F03', childItemName: '가이드레일 (우)', quantity: 3.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F04', childItemName: '상부 케이스', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-F05', childItemName: '하부 바텀바', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-M02', childItemName: '모터 (1.5KW)', quantity: 1, unit: 'EA', quantityFormula: '', note: '중형용' },
      { childItemCode: 'SF-SCR-C01', childItemName: '제어반 (표준)', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-S01', childItemName: '감지기 세트', quantity: 1, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-W01', childItemName: '권취축', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-B01', childItemName: '브라켓 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '중형용 2세트' },
      { childItemCode: 'SF-SCR-E01', childItemName: '엣지윙 (좌)', quantity: 3.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-E02', childItemName: '엣지윙 (우)', quantity: 3.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-REM01', childItemName: '리모컨', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-B002', childItemName: '볼트 M10x40', quantity: 30, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N002', childItemName: '너트 M10', quantity: 30, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-A001', childItemName: '앵커볼트 M10', quantity: 8, unit: 'EA', quantityFormula: '', note: '고정용' },
    ];
  }
  
  // FG-SCR-003 (대형 스크린 3000x4000)
  if (items[62]) {
    items[62].bom = [
      { childItemCode: 'SF-SCR-F01', childItemName: '스크린 원단', quantity: 12.0, unit: 'M2', quantityFormula: 'W*H/1000000', note: '3000x4000' },
      { childItemCode: 'SF-SCR-F02', childItemName: '가이드레일 (좌)', quantity: 4.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F03', childItemName: '가이드레일 (우)', quantity: 4.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F04', childItemName: '상부 케이스', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-F05', childItemName: '하부 바텀바', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-M03', childItemName: '모터 (2.2KW)', quantity: 1, unit: 'EA', quantityFormula: '', note: '대형용' },
      { childItemCode: 'SF-SCR-C02', childItemName: '제어반 (고급)', quantity: 1, unit: 'EA', quantityFormula: '', note: '고급형' },
      { childItemCode: 'SF-SCR-S01', childItemName: '감지기 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '대형용 2세트' },
      { childItemCode: 'SF-SCR-W01', childItemName: '권취축', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-B01', childItemName: '브라켓 세트', quantity: 3, unit: 'SET', quantityFormula: '', note: '대형용 3세트' },
      { childItemCode: 'SF-SCR-E01', childItemName: '엣지윙 (좌)', quantity: 4.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-E02', childItemName: '엣지윙 (우)', quantity: 4.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-CH01', childItemName: '체인 세트', quantity: 1, unit: 'SET', quantityFormula: '', note: '보조 승강' },
      { childItemCode: 'SF-SCR-REM01', childItemName: '리모컨', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-B003', childItemName: '볼트 M12x50', quantity: 40, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N003', childItemName: '너트 M12', quantity: 40, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 12, unit: 'EA', quantityFormula: '', note: '고정용' },
    ];
  }
  
  // FG-SCR-004 (특대형 스크린 4000x5000)
  if (items[63]) {
    items[63].bom = [
      { childItemCode: 'SF-SCR-F01', childItemName: '스크린 원단', quantity: 20.0, unit: 'M2', quantityFormula: 'W*H/1000000', note: '4000x5000' },
      { childItemCode: 'SF-SCR-F02', childItemName: '가이드레일 (좌)', quantity: 5.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F03', childItemName: '가이드레일 (우)', quantity: 5.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F04', childItemName: '상부 케이스', quantity: 2, unit: 'EA', quantityFormula: '', note: '특대형 2개' },
      { childItemCode: 'SF-SCR-F05', childItemName: '하부 바텀바', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-M04', childItemName: '모터 (3.7KW)', quantity: 1, unit: 'EA', quantityFormula: '', note: '특대형용' },
      { childItemCode: 'SF-SCR-C02', childItemName: '제어반 (고급)', quantity: 1, unit: 'EA', quantityFormula: '', note: '고급형' },
      { childItemCode: 'SF-SCR-S01', childItemName: '감지기 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '특대형용 2세트' },
      { childItemCode: 'SF-SCR-W01', childItemName: '권취축', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-B01', childItemName: '브라켓 세트', quantity: 4, unit: 'SET', quantityFormula: '', note: '특대형용 4세트' },
      { childItemCode: 'SF-SCR-E01', childItemName: '엣지윙 (좌)', quantity: 5.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-E02', childItemName: '엣지윙 (우)', quantity: 5.0, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-SP01', childItemName: '스프링 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '보조 스프링' },
      { childItemCode: 'SF-SCR-CH01', childItemName: '체인 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '보조 승강' },
      { childItemCode: 'SF-SCR-REM01', childItemName: '리모컨', quantity: 2, unit: 'EA', quantityFormula: '', note: '예비 포함' },
      { childItemCode: 'SM-B003', childItemName: '볼트 M12x50', quantity: 60, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N003', childItemName: '너트 M12', quantity: 60, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 16, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-G001', childItemName: '그리스', quantity: 2, unit: 'EA', quantityFormula: '', note: '윤활' },
    ];
  }
  
  // FG-SCR-005 (맞춤형 스크린 2500x3500)
  if (items[64]) {
    items[64].bom = [
      { childItemCode: 'SF-SCR-F01', childItemName: '스크린 원단', quantity: 8.75, unit: 'M2', quantityFormula: 'W*H/1000000', note: '2500x3500' },
      { childItemCode: 'SF-SCR-F02', childItemName: '가이드레일 (좌)', quantity: 3.5, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F03', childItemName: '가이드레일 (우)', quantity: 3.5, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-F04', childItemName: '상부 케이스', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-F05', childItemName: '하부 바텀바', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-M02', childItemName: '모터 (1.5KW)', quantity: 1, unit: 'EA', quantityFormula: '', note: '중형용' },
      { childItemCode: 'SF-SCR-C02', childItemName: '제어반 (고급)', quantity: 1, unit: 'EA', quantityFormula: '', note: '맞춤형 고급' },
      { childItemCode: 'SF-SCR-S01', childItemName: '감지기 세트', quantity: 1, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-W01', childItemName: '권취축', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-B01', childItemName: '브라켓 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-E01', childItemName: '엣지윙 (좌)', quantity: 3.5, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-E02', childItemName: '엣지윙 (우)', quantity: 3.5, unit: 'M', quantityFormula: 'H/1000', note: '높이 기준' },
      { childItemCode: 'SF-SCR-REM01', childItemName: '리모컨', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-SCR-SW01', childItemName: '스위치 BOX', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-B002', childItemName: '볼트 M10x40', quantity: 35, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N002', childItemName: '너트 M10', quantity: 35, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-A001', childItemName: '앵커볼트 M10', quantity: 10, unit: 'EA', quantityFormula: '', note: '고정용' },
    ];
  }
  
  // ===== 철재 제품 BOM 구조 (인덱스 65~69) =====
  
  // FG-STL-001 (소형 철재문 900x2100)
  if (items[65]) {
    items[65].bom = [
      { childItemCode: 'SF-STL-D01', childItemName: '철재 도어', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 6.0, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '(900+2100)*2' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 1.89, unit: 'M2', quantityFormula: 'W*H/1000000', note: '900x2100' },
      { childItemCode: 'SF-STL-H01', childItemName: '경첩 세트 (표준)', quantity: 1, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-L01', childItemName: '도어락 (기계식)', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-C01', childItemName: '도어클로저', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-S01', childItemName: '실링재', quantity: 6.0, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '둘레 기준' },
      { childItemCode: 'SF-STL-T01', childItemName: '문턱', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-K01', childItemName: '킥플레이트', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-B01', childItemName: '볼트/너트 세트', quantity: 2, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SM-A001', childItemName: '앵커볼트 M10', quantity: 8, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-S001', childItemName: '실리콘 (투명)', quantity: 1, unit: 'EA', quantityFormula: '', note: '실링' },
    ];
  }
  
  // FG-STL-002 (중형 철재문 1800x2400)
  if (items[66]) {
    items[66].bom = [
      { childItemCode: 'SF-STL-D01', childItemName: '철재 도어', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 8.4, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '(1800+2400)*2' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 4.32, unit: 'M2', quantityFormula: 'W*H/1000000', note: '1800x2400' },
      { childItemCode: 'SF-STL-H02', childItemName: '경첩 세트 (중형)', quantity: 2, unit: 'SET', quantityFormula: '', note: '중형용 2세트' },
      { childItemCode: 'SF-STL-L02', childItemName: '도어락 (전자식)', quantity: 1, unit: 'EA', quantityFormula: '', note: '전자식' },
      { childItemCode: 'SF-STL-C01', childItemName: '도어클로저', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-S01', childItemName: '실링재', quantity: 8.4, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '둘레 기준' },
      { childItemCode: 'SF-STL-G01', childItemName: '유리 (방화)', quantity: 0.5, unit: 'M2', quantityFormula: '', note: '창 부분' },
      { childItemCode: 'SF-STL-T01', childItemName: '문턱', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-K01', childItemName: '킥플레이트', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-V01', childItemName: '환기구', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-B01', childItemName: '볼트/너트 세트', quantity: 3, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 4.32, unit: 'M2', quantityFormula: 'W*H/1000000', note: '표면처리' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 10, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-S002', childItemName: '실리콘 (백색)', quantity: 2, unit: 'EA', quantityFormula: '', note: '실링' },
    ];
  }
  
  // FG-STL-003 (대형 철재문 2400x3000)
  if (items[67]) {
    items[67].bom = [
      { childItemCode: 'SF-STL-D01', childItemName: '철재 도어', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 10.8, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '(2400+3000)*2' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 7.2, unit: 'M2', quantityFormula: 'W*H/1000000', note: '2400x3000' },
      { childItemCode: 'SF-STL-H02', childItemName: '경첩 세트 (중형)', quantity: 3, unit: 'SET', quantityFormula: '', note: '대형용 3세트' },
      { childItemCode: 'SF-STL-L02', childItemName: '도어락 (전자식)', quantity: 1, unit: 'EA', quantityFormula: '', note: '전자식' },
      { childItemCode: 'SF-STL-C01', childItemName: '도어클로저', quantity: 2, unit: 'EA', quantityFormula: '', note: '대형용 2개' },
      { childItemCode: 'SF-STL-S01', childItemName: '실링재', quantity: 10.8, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '둘레 기준' },
      { childItemCode: 'SF-STL-G01', childItemName: '유리 (방화)', quantity: 1.0, unit: 'M2', quantityFormula: '', note: '창 부분' },
      { childItemCode: 'SF-STL-T01', childItemName: '문턱', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-K01', childItemName: '킥플레이트', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-V01', childItemName: '환기구', quantity: 2, unit: 'EA', quantityFormula: '', note: '대형용 2개' },
      { childItemCode: 'SF-STL-W01', childItemName: '창틀', quantity: 4.0, unit: 'M', quantityFormula: '', note: '창 둘레' },
      { childItemCode: 'SF-STL-B01', childItemName: '볼트/너트 세트', quantity: 4, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-BND-C01', childItemName: '절곡 ㄷ형 보강재', quantity: 2.0, unit: 'M', quantityFormula: '', note: '대형문 보강' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 7.2, unit: 'M2', quantityFormula: 'W*H/1000000', note: '표면처리' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 12, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-S002', childItemName: '실리콘 (백색)', quantity: 3, unit: 'EA', quantityFormula: '', note: '실링' },
    ];
  }
  
  // FG-STL-004 (양개문 1800x2400)
  if (items[68]) {
    items[68].bom = [
      { childItemCode: 'SF-STL-D01', childItemName: '철재 도어', quantity: 2, unit: 'EA', quantityFormula: '', note: '양개문' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 8.4, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '(1800+2400)*2' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 4.32, unit: 'M2', quantityFormula: 'W*H/1000000', note: '1800x2400' },
      { childItemCode: 'SF-STL-H02', childItemName: '경첩 세트 (중형)', quantity: 4, unit: 'SET', quantityFormula: '', note: '양개문 각 2세트' },
      { childItemCode: 'SF-STL-L02', childItemName: '도어락 (전자식)', quantity: 2, unit: 'EA', quantityFormula: '', note: '양개문용' },
      { childItemCode: 'SF-STL-C01', childItemName: '도어클로저', quantity: 2, unit: 'EA', quantityFormula: '', note: '양개문 각 1개' },
      { childItemCode: 'SF-STL-S01', childItemName: '실링재', quantity: 12.0, unit: 'M', quantityFormula: '', note: '양개문 실링' },
      { childItemCode: 'SF-STL-G01', childItemName: '유리 (방화)', quantity: 1.0, unit: 'M2', quantityFormula: '', note: '창 부분' },
      { childItemCode: 'SF-STL-T01', childItemName: '문턱', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-K01', childItemName: '킥플레이트', quantity: 2, unit: 'EA', quantityFormula: '', note: '양개문 각 1개' },
      { childItemCode: 'SF-STL-B01', childItemName: '볼트/너트 세트', quantity: 5, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-BND-L01', childItemName: '절곡 L형 브라켓', quantity: 4, unit: 'EA', quantityFormula: '', note: '양개문 연결' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 4.32, unit: 'M2', quantityFormula: 'W*H/1000000', note: '표면처리' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 12, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-S001', childItemName: '실리콘 (투명)', quantity: 2, unit: 'EA', quantityFormula: '', note: '실링' },
    ];
  }
  
  // FG-STL-005 (특수 철재문 2000x2600)
  if (items[69]) {
    items[69].bom = [
      { childItemCode: 'SF-STL-D01', childItemName: '철재 도어', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 9.2, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '(2000+2600)*2' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 5.2, unit: 'M2', quantityFormula: 'W*H/1000000', note: '2000x2600' },
      { childItemCode: 'SF-STL-H02', childItemName: '경첩 세트 (중형)', quantity: 2, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-L02', childItemName: '도어락 (전자식)', quantity: 1, unit: 'EA', quantityFormula: '', note: '전자식' },
      { childItemCode: 'SF-STL-C01', childItemName: '도어클로저', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-S01', childItemName: '실링재', quantity: 9.2, unit: 'M', quantityFormula: '(W+H)*2/1000', note: '둘레 기준' },
      { childItemCode: 'SF-STL-G01', childItemName: '유리 (방화)', quantity: 0.8, unit: 'M2', quantityFormula: '', note: '창 부분' },
      { childItemCode: 'SF-STL-T01', childItemName: '문턱', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-K01', childItemName: '킥플레이트', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-V01', childItemName: '환기구', quantity: 1, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SF-STL-W01', childItemName: '창틀', quantity: 3.0, unit: 'M', quantityFormula: '', note: '창 둘레' },
      { childItemCode: 'SF-STL-B01', childItemName: '볼트/너트 세트', quantity: 3, unit: 'SET', quantityFormula: '', note: '' },
      { childItemCode: 'SF-BND-Z01', childItemName: '절곡 Z형 앵글', quantity: 2.0, unit: 'M', quantityFormula: '', note: '특수 보강' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 5.2, unit: 'M2', quantityFormula: 'W*H/1000000', note: '표면처리' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 10, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-S002', childItemName: '실리콘 (백색)', quantity: 2, unit: 'EA', quantityFormula: '', note: '실링' },
    ];
  }
  
  // ===== 절곡 제품 BOM 구조 (인덱스 70~73) =====
  
  // FG-BND-001 (절곡 L형 프레임 1200x2400)
  if (items[70]) {
    items[70].bom = [
      { childItemCode: 'SF-BND-L01', childItemName: '절곡 L형 브라켓', quantity: 4, unit: 'EA', quantityFormula: '', note: '모서리용' },
      { childItemCode: 'SF-BND-U01', childItemName: '절곡 U형 채널', quantity: 7.2, unit: 'M', quantityFormula: '', note: '프레임 본체' },
      { childItemCode: 'SF-STL-F01', childItemName: '철재 프레임', quantity: 3.6, unit: 'M', quantityFormula: '', note: '보조 프레임' },
      { childItemCode: 'SM-B003', childItemName: '볼트 M12x50', quantity: 24, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N003', childItemName: '너트 M12', quantity: 24, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-W003', childItemName: '와셔 M12', quantity: 48, unit: 'EA', quantityFormula: '', note: '상하 와셔' },
      { childItemCode: 'SM-SP001', childItemName: '스프링와셔 M10', quantity: 24, unit: 'EA', quantityFormula: '', note: '풀림방지' },
      { childItemCode: 'SM-WD001', childItemName: '용접봉 3.2mm', quantity: 0.5, unit: 'KG', quantityFormula: '', note: '보강 용접' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 8, unit: 'EA', quantityFormula: '', note: '고정용' },
    ];
    items[70].specification = '1200W x 2400H (절곡가공 L형, 90도 절곡)';
  }
  
  // FG-BND-002 (절곡 U형 패널 1500x2000)
  if (items[71]) {
    items[71].bom = [
      { childItemCode: 'SF-BND-U01', childItemName: '절곡 U형 채널', quantity: 7.0, unit: 'M', quantityFormula: '', note: 'U형 본체' },
      { childItemCode: 'SF-BND-L01', childItemName: '절곡 L형 브라켓', quantity: 6, unit: 'EA', quantityFormula: '', note: '연결용' },
      { childItemCode: 'SF-STL-P01', childItemName: '철재 패널', quantity: 3.0, unit: 'M2', quantityFormula: '', note: '측면 패널' },
      { childItemCode: 'SM-B002', childItemName: '볼트 M10x40', quantity: 30, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N002', childItemName: '너트 M10', quantity: 30, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-R002', childItemName: '리벳 5x12', quantity: 40, unit: 'EA', quantityFormula: '', note: '패널 고정' },
      { childItemCode: 'SM-WD001', childItemName: '용접봉 3.2mm', quantity: 0.3, unit: 'KG', quantityFormula: '', note: '용접' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 3.0, unit: 'M2', quantityFormula: '', note: '표면처리' },
    ];
    items[71].specification = '1500W x 2000H (절곡가공 U형, 2회 절곡)';
  }
  
  // FG-BND-003 (절곡 Z형 커버 1000x1500)
  if (items[72]) {
    items[72].bom = [
      { childItemCode: 'SF-BND-Z01', childItemName: '절곡 Z형 앵글', quantity: 5.0, unit: 'M', quantityFormula: '', note: 'Z형 본체' },
      { childItemCode: 'SF-BND-L01', childItemName: '절곡 L형 브라켓', quantity: 4, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-B002', childItemName: '볼트 M10x40', quantity: 20, unit: 'EA', quantityFormula: '', note: '조립용' },
      { childItemCode: 'SM-N002', childItemName: '너트 M10', quantity: 20, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-W002', childItemName: '와셔 M10', quantity: 40, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-P001', childItemName: '보호필름', quantity: 1.5, unit: 'M2', quantityFormula: '', note: '표면 보호' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 1.5, unit: 'M2', quantityFormula: '', note: '표면처리' },
    ];
    items[72].specification = '1000W x 1500H (절곡가공 Z형, S자 형태 2회 절곡)';
  }
  
  // FG-BND-004 (절곡 ㄷ형 보강재 800x1200)
  if (items[73]) {
    items[73].bom = [
      { childItemCode: 'SF-BND-C01', childItemName: '절곡 ㄷ형 보강재', quantity: 4.0, unit: 'M', quantityFormula: '', note: 'ㄷ형 본체' },
      { childItemCode: 'SF-BND-L01', childItemName: '절곡 L형 브라켓', quantity: 8, unit: 'EA', quantityFormula: '', note: '연결 브라켓' },
      { childItemCode: 'SM-B003', childItemName: '볼트 M12x50', quantity: 32, unit: 'EA', quantityFormula: '', note: '고정용' },
      { childItemCode: 'SM-N003', childItemName: '너트 M12', quantity: 32, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-W003', childItemName: '와셔 M12', quantity: 64, unit: 'EA', quantityFormula: '', note: '' },
      { childItemCode: 'SM-SP001', childItemName: '스프링와셔 M10', quantity: 32, unit: 'EA', quantityFormula: '', note: '풀림방지' },
      { childItemCode: 'SM-WD001', childItemName: '용접봉 3.2mm', quantity: 0.4, unit: 'KG', quantityFormula: '', note: '보강 용접' },
      { childItemCode: 'SF-STL-P02', childItemName: '파우더 도장', quantity: 1.0, unit: 'M2', quantityFormula: '', note: '표면처리' },
      { childItemCode: 'SM-A002', childItemName: '앵커볼트 M12', quantity: 6, unit: 'EA', quantityFormula: '', note: '고정용' },
    ];
    items[73].specification = '800W x 1200H (절곡가공 ㄷ형, 2회 절곡 보강용)';
  }
  
  return items;
}
