From 36385dadbb471508457f86e3a0e9ee05922b90c6 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 10 Nov 2025 14:59:28 +0900 Subject: (김준회) 벤더데이터: 삭제건은 send to shi 로 보내지 않기로 필터링 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/forms/services.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/forms') 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로 전송된 데이터임을 표시 -- cgit v1.2.3