diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-10 09:55:45 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-10 09:55:45 +0000 |
| commit | c657ef972feeafff16ab0e07cb4771f7dd141ba0 (patch) | |
| tree | befabd884b00d3cc632c628b3e3810f61cc9f38d /app/api/vendors/route.ts | |
| parent | b8a03c9d130435a71c5d6217d06ccb0beb9697e5 (diff) | |
(대표님) 20250710 작업사항 - 평가 첨부, 로그인, SEDP 변경 요구사항 반영
Diffstat (limited to 'app/api/vendors/route.ts')
| -rw-r--r-- | app/api/vendors/route.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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, |
