From c8e93fad9b1f3b1e4d99b23fc3d99dd5f463742a Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 23 Sep 2025 01:37:34 +0000 Subject: (최겸) 구매 벤더 RFQ 제출 validation 오류 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rfq-last/service.ts | 4 ++-- lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/rfq-last') diff --git a/lib/rfq-last/service.ts b/lib/rfq-last/service.ts index 98d0e750..27e278ab 100644 --- a/lib/rfq-last/service.ts +++ b/lib/rfq-last/service.ts @@ -992,8 +992,8 @@ export async function addVendorToRfq({ vendorFirstYn: conditions.firstYn, vendorFirstDescription: conditions.firstDescription, vendorSparepartDescription: conditions.sparepartDescription, - createdBy: user.id, - updatedBy: user.id, + createdBy: userId, + updatedBy: userId, }) .returning(); diff --git a/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx b/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx index 34259d37..c6e81f32 100644 --- a/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx +++ b/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx @@ -25,9 +25,9 @@ const vendorResponseSchema = z.object({ vendorCurrency: z.string().optional(), vendorPaymentTermsCode: z.string().optional(), vendorIncotermsCode: z.string().optional(), - vendorIncotermsDetail: z.string().optional(), + vendorIncotermsDetail: z.string().nullable().optional(), vendorDeliveryDate: z.date().optional().nullable(), - vendorContractDuration: z.string().optional(), + vendorContractDuration: z.string().nullable().optional(), vendorTaxCode: z.string().optional(), vendorPlaceOfShipping: z.string().optional(), vendorPlaceOfDestination: z.string().optional(), @@ -449,7 +449,7 @@ export default function VendorResponseEditor({ - + -- cgit v1.2.3