From e832a508e1b3c531fb3e1b9761e18e1b55e3d76a Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Fri, 5 Sep 2025 11:59:38 +0000 Subject: (김준회) RFQ 인터페이스 처리, 변수명 오타 수정(VendorPossibleMaterials), 협력업체 관리페이지 구매요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PR_INFORMATION/route.ts | 4 ++-- app/api/auth/signup-with-vendor/route.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/api') diff --git a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PR_INFORMATION/route.ts b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PR_INFORMATION/route.ts index 6eddf757..7290db0f 100644 --- a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PR_INFORMATION/route.ts +++ b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_PR_INFORMATION/route.ts @@ -111,8 +111,8 @@ export async function POST(request: NextRequest) { } } - // AN (RFQ) 데이터 처리 - procurementRfqs 테이블 - let rfqMappingResult = null; + // AN (RFQ) 데이터 처리 - rfqsLast 테이블 + let rfqMappingResult: { success: boolean; message: string; processedCount: number } | null = null; if (anHeaders.length > 0) { rfqMappingResult = await mapAndSaveECCRfqData(anHeaders, anItems); if (!rfqMappingResult.success) { diff --git a/app/api/auth/signup-with-vendor/route.ts b/app/api/auth/signup-with-vendor/route.ts index fcc06ee8..930deef2 100644 --- a/app/api/auth/signup-with-vendor/route.ts +++ b/app/api/auth/signup-with-vendor/route.ts @@ -15,7 +15,7 @@ import { consentLogs, policyVersions } from '@/db/schema' -import { vendorPossibleMateirals } from '@/db/schema/vendors' +import { vendorPossibleMaterials } from '@/db/schema/vendors' import { insertVendor } from '@/lib/vendors/repository' import { getErrorMessage } from '@/lib/handle-error' import { saveFile, SaveFileResult } from '@/lib/file-stroage' @@ -144,7 +144,7 @@ async function saveVendorMaterials( } for (const material of materials) { - await tx.insert(vendorPossibleMateirals).values({ + await tx.insert(vendorPossibleMaterials).values({ vendorId, itemCode: material.materialGroupCode, itemName: material.materialName, -- cgit v1.2.3