From c657ef972feeafff16ab0e07cb4771f7dd141ba0 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 10 Jul 2025 09:55:45 +0000 Subject: (대표님) 20250710 작업사항 - 평가 첨부, 로그인, SEDP 변경 요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/vendors/route.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/api/vendors') diff --git a/app/api/vendors/route.ts b/app/api/vendors/route.ts index 7c7dbb84..760f183e 100644 --- a/app/api/vendors/route.ts +++ b/app/api/vendors/route.ts @@ -31,11 +31,14 @@ interface CreateVendorData { representativeEmail?: string representativePhone?: string corporateRegistrationNumber?: string + representativeWorkExpirence?: boolean } interface ContactData { contactName: string contactPosition?: string + contactDepartment?: string + contactTask?: string contactEmail: string contactPhone?: string isPrimary?: boolean @@ -218,12 +221,14 @@ export async function POST(request: NextRequest) { await storeVendorFiles(tx, newVendor.id, bankAccountFiles, FILE_TYPES.BANK_ACCOUNT_COPY) } - // Insert contacts + // Insert contacts with new fields for (const contact of contacts) { await tx.insert(vendorContacts).values({ vendorId: newVendor.id, contactName: contact.contactName, contactPosition: contact.contactPosition || null, + contactDepartment: contact.contactDepartment || null, + contactTask: contact.contactTask || null, contactEmail: contact.contactEmail, contactPhone: contact.contactPhone || null, isPrimary: contact.isPrimary ?? false, -- cgit v1.2.3