diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-10 14:59:28 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-10 14:59:28 +0900 |
| commit | 36385dadbb471508457f86e3a0e9ee05922b90c6 (patch) | |
| tree | 7a7aa5e364576fbfb2e63bc6b9a1d81e47552249 /lib/forms/services.ts | |
| parent | f8a38907911d940cb2e8e6c9aa49488d05b2b578 (diff) | |
(김준회) 벤더데이터: 삭제건은 send to shi 로 보내지 않기로 필터링
Diffstat (limited to 'lib/forms/services.ts')
| -rw-r--r-- | lib/forms/services.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/forms/services.ts b/lib/forms/services.ts index a56b4083..0d5b2d6a 100644 --- a/lib/forms/services.ts +++ b/lib/forms/services.ts @@ -1747,6 +1747,11 @@ export async function sendFormDataToSEDP( // Update status for sent tags const updatedDataArray = dataArray.map(item => { if (item.TAG_NO && sentTagNumbers.has(item.TAG_NO)) { + // 삭제된 항목(status="Deleted")은 status를 유지하고, + // 나머지 항목만 "Sent to S-EDP"로 변경 + if (item.status === "Deleted") { + return item; // Keep status="Deleted" unchanged + } return { ...item, status: "Sent to S-EDP" // SEDP로 전송된 데이터임을 표시 |
