diff options
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 })); |
