fix: 입고 목록 API 응답 필드 매핑 누락 수정
- transformApiToListItem에 specification, receivingDate, createdBy 필드 추가 - 리스트에서 규격, 입고일, 작성자가 정상 표시되도록 수정
This commit is contained in:
@@ -305,12 +305,15 @@ function transformApiToListItem(data: ReceivingApiData): ReceivingItem {
|
||||
orderNo: data.order_no || data.receiving_number,
|
||||
itemCode: data.item_code,
|
||||
itemName: data.item_name,
|
||||
specification: data.specification,
|
||||
supplier: data.supplier,
|
||||
orderQty: parseFloat(String(data.order_qty)) || 0,
|
||||
orderUnit: data.order_unit || 'EA',
|
||||
receivingQty: data.receiving_qty ? parseFloat(String(data.receiving_qty)) : undefined,
|
||||
receivingDate: data.receiving_date,
|
||||
lotNo: data.lot_no,
|
||||
unit: data.order_unit || 'EA',
|
||||
createdBy: data.creator?.name,
|
||||
status: data.status,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user