summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-10 14:59:28 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-10 14:59:28 +0900
commit36385dadbb471508457f86e3a0e9ee05922b90c6 (patch)
tree7a7aa5e364576fbfb2e63bc6b9a1d81e47552249 /lib
parentf8a38907911d940cb2e8e6c9aa49488d05b2b578 (diff)
(김준회) 벤더데이터: 삭제건은 send to shi 로 보내지 않기로 필터링
Diffstat (limited to 'lib')
-rw-r--r--lib/forms/services.ts5
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로 전송된 데이터임을 표시