summaryrefslogtreecommitdiff
path: root/lib/soap/mdg/send/vendor-master/action.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/mdg/send/vendor-master/action.ts')
-rw-r--r--lib/soap/mdg/send/vendor-master/action.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/soap/mdg/send/vendor-master/action.ts b/lib/soap/mdg/send/vendor-master/action.ts
index bdb2d579..c73d78c5 100644
--- a/lib/soap/mdg/send/vendor-master/action.ts
+++ b/lib/soap/mdg/send/vendor-master/action.ts
@@ -36,7 +36,7 @@ function createVendorMasterSoapBodyContent(supplierMaster: Record<string, string
}
// MDG로 VENDOR 마스터 SOAP XML 전송하는 함수 (sender.ts 사용)
-async function sendVendorMasterToMDGInternal(supplierMaster: Record<string, string>): Promise<{
+export async function sendVendorMasterToMDGInternal(supplierMaster: Record<string, string>): Promise<{
success: boolean;
message: string;
responseText?: string;
@@ -220,6 +220,17 @@ function buildSupplierMasterData(vendorData: NonNullable<Awaited<ReturnType<type
// 메인 송신 함수들
// ========================================
+/**
+ * @deprecated 이 함수는 더 이상 사용되지 않습니다.
+ * 대신 sendSingleVendorToMDG()를 사용하세요.
+ *
+ * 이유:
+ * - 신규 벤더는 vendorCode가 없음 (MDG에서 생성)
+ * - 개별 벤더 데이터 전송이 필요
+ * - vendors 테이블에서 직접 데이터 조회 필요
+ *
+ * @see lib/soap/mdg/send/vendor-master/send-single-vendor.ts
+ */
// VENDOR 마스터 데이터를 MDG로 송신하는 액션
export async function sendVendorMasterToMDG(vendorCodes: string[]): Promise<{
success: boolean;