fix: ApiBomItem에 없는 specification 속성 참조 제거
- item.specification fallback 제거 (ApiBomItem에 spec만 존재) - 빌드 타입 에러 해결
This commit is contained in:
@@ -68,7 +68,7 @@ function transformDetailApiToFrontend(data: ApiProductionOrderDetail): Productio
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
itemCode: item.item_code,
|
itemCode: item.item_code,
|
||||||
itemName: item.item_name,
|
itemName: item.item_name,
|
||||||
spec: item.spec || item.specification || '',
|
spec: item.spec || '',
|
||||||
unit: item.unit || '',
|
unit: item.unit || '',
|
||||||
quantity: item.quantity ?? 0,
|
quantity: item.quantity ?? 0,
|
||||||
unitPrice: item.unit_price ?? 0,
|
unitPrice: item.unit_price ?? 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user