diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-17 08:08:33 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-17 08:08:33 +0000 |
| commit | 1540eac291761ffd8fc1947ed626e4e4a4407922 (patch) | |
| tree | a7b6ae8060e164f249651cf6ef8b0c2e868019e9 /lib/rfq-last/vendor-response | |
| parent | 55b6153dfce83a1cf2be72cbc3413d78084e8da1 (diff) | |
(최겸) 견적입찰 비교관련 수정
Diffstat (limited to 'lib/rfq-last/vendor-response')
| -rw-r--r-- | lib/rfq-last/vendor-response/editor/commercial-terms-form.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rfq-last/vendor-response/editor/commercial-terms-form.tsx b/lib/rfq-last/vendor-response/editor/commercial-terms-form.tsx index d896ee34..b8b3a830 100644 --- a/lib/rfq-last/vendor-response/editor/commercial-terms-form.tsx +++ b/lib/rfq-last/vendor-response/editor/commercial-terms-form.tsx @@ -85,11 +85,14 @@ export default function CommercialTermsForm({ rfqDetail, rfq }: CommercialTermsF const isDifferentPaymentTerms = vendorPaymentTermsCode !== rfqDetail.paymentTermsCode const isDifferentIncoterms = vendorIncotermsCode !== rfqDetail.incotermsCode - // 날짜만 비교 (년월일만 체크) + // 날짜만 비교 (년월일만 체크) - 로컬 시간대 기준 const formatDateOnly = (date: Date | string | null) => { if (!date) return null const d = new Date(date) - return d.toISOString().split('T')[0] // YYYY-MM-DD 형식으로 변환 + const year = d.getFullYear() + const month = String(d.getMonth() + 1).padStart(2, '0') + const day = String(d.getDate()).padStart(2, '0') + return `${year}-${month}-${day}` } const isDifferentDeliveryDate = !isFrameContract && formatDateOnly(vendorDeliveryDate) !== formatDateOnly(rfqDetail.deliveryDate) |
