diff --git a/src/components/orders/actions.ts b/src/components/orders/actions.ts index 1e005723..c9ef8fb8 100644 --- a/src/components/orders/actions.ts +++ b/src/components/orders/actions.ts @@ -669,6 +669,8 @@ function transformFrontendToApi(data: OrderFormData | Record): supply_amount: supplyAmount, tax_amount: taxAmount, total_amount: supplyAmount + taxAmount, + floor_code: item.type || null, + symbol_code: item.symbol || null, }; }), }; diff --git a/src/components/quotes/types.ts b/src/components/quotes/types.ts index 4a264157..eec74a6f 100644 --- a/src/components/quotes/types.ts +++ b/src/components/quotes/types.ts @@ -409,6 +409,7 @@ export interface BomMaterial { // BOM 계산 결과 아이템 타입 export interface BomCalculationResultItem { + item_id?: number | null; item_code: string; item_name: string; item_category?: string; // 품목 카테고리 @@ -758,6 +759,7 @@ export function transformV2ToApi( // 2. items 생성 (BOM 결과 있으면 자재 상세, 없으면 완제품 기준) let items: Array<{ + item_id?: number | null; item_name: string; item_code: string; specification: string | null; @@ -788,6 +790,7 @@ export function transformV2ToApi( : parseFloat((baseQty * orderQty).toFixed(2)); items.push({ + item_id: bomItem.item_id || null, item_name: bomItem.item_name, item_code: bomItem.item_code, specification: bomItem.specification || null, @@ -818,6 +821,7 @@ export function transformV2ToApi( : parseFloat((baseQty * orderQty).toFixed(2)); items.push({ + item_id: bomItem.item_id || null, item_name: bomItem.item_name, item_code: bomItem.item_code, specification: bomItem.specification || null,