diff options
| author | joonhoekim <26rote@gmail.com> | 2025-10-13 17:29:33 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-10-13 17:29:33 +0900 |
| commit | e84cf02a1cb4959a9d3bb5bbf37885c13a447f78 (patch) | |
| tree | cfb2817e3bd8f5ef08b4428b9e6fc619ef3884a1 /app/api | |
| parent | 89274bffa596ffdfc4275fb8d11cdb02ff9a2d02 (diff) | |
(김준회) SHI/벤더 PO 구현
Diffstat (limited to 'app/api')
| -rw-r--r-- | app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PO_INFORMATION/route.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PO_INFORMATION/route.ts b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PO_INFORMATION/route.ts index eea16e84..c6275c68 100644 --- a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PO_INFORMATION/route.ts +++ b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PO_INFORMATION/route.ts @@ -117,9 +117,15 @@ export async function POST(request: NextRequest) { await saveToDatabase(processedData); // 6) PO 데이터를 비즈니스 테이블(contracts, contract_items)로 매핑 - // ProcessedPOData를 POMapperProcessedData 형식으로 변환 + // ProcessedPOData를 POMapperProcessedData 형식으로 변환 (notes 포함) const mappingData: POMapperProcessedData[] = processedData.map(poData => ({ - header: poData.header, + header: { + ...poData.header, + notes: poData.notes.map(note => ({ + ZNOTE_SER: note.ZNOTE_SER || '', + ZNOTE_TXT: note.ZNOTE_TXT || '' + })) + }, details: poData.details })); |
