diff options
Diffstat (limited to 'lib/rfq-last/vendor')
| -rw-r--r-- | lib/rfq-last/vendor/rfq-vendor-table.tsx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/rfq-last/vendor/rfq-vendor-table.tsx b/lib/rfq-last/vendor/rfq-vendor-table.tsx index fc98785d..e21ec242 100644 --- a/lib/rfq-last/vendor/rfq-vendor-table.tsx +++ b/lib/rfq-last/vendor/rfq-vendor-table.tsx @@ -440,10 +440,12 @@ export function RfqVendorTable({ return; } - const hasAttachments = rfqSendData.attachments && rfqSendData.attachments.length > 0; + // ๐น attachment_type์ด '๊ตฌ๋งค'์ธ ์ฒจ๋ถํ์ผ์ด ์๋์ง ํ์ธ + const hasPurchaseAttachments = rfqSendData.attachments && + rfqSendData.attachments.some((att: any) => att.attachmentType === '๊ตฌ๋งค'); - // ๐น ์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ฒฐ์ฌ ํ๋ก์ธ์ค ์์ - if (hasAttachments) { + // ๐น '๊ตฌ๋งค' ํ์
์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ฒฐ์ฌ ํ๋ก์ธ์ค ์์ + if (hasPurchaseAttachments) { // Knox EP ID ํ์ธ if (!session?.user?.epId) { toast.error("Knox EP ID๊ฐ ์์ต๋๋ค. ์์คํ
๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ํ์ธ์."); @@ -490,7 +492,7 @@ export function RfqVendorTable({ return; } - // ๐น ์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ธฐ์กด ๋ก์ง (๋ฐ๋ก ๋ฐ์ก) + // ๐น '๊ตฌ๋งค' ํ์
์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ธฐ์กด ๋ก์ง (๋ฐ๋ก ๋ฐ์ก) // ๋ค์ด์ผ๋ก๊ทธ ๋ฐ์ดํฐ ์ค์ setSendDialogData({ rfqInfo: rfqSendData.rfqInfo, @@ -736,10 +738,12 @@ export function RfqVendorTable({ return; } - const hasAttachments = rfqSendData.attachments && rfqSendData.attachments.length > 0; + // ๐น attachment_type์ด '๊ตฌ๋งค'์ธ ์ฒจ๋ถํ์ผ์ด ์๋์ง ํ์ธ + const hasPurchaseAttachments = rfqSendData.attachments && + rfqSendData.attachments.some((att: any) => att.attachmentType === '๊ตฌ๋งค'); - // ๐น ์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ฒฐ์ฌ ํ๋ก์ธ์ค - if (hasAttachments) { + // ๐น '๊ตฌ๋งค' ํ์
์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ฒฐ์ฌ ํ๋ก์ธ์ค + if (hasPurchaseAttachments) { if (!session?.user?.epId) { toast.error("Knox EP ID๊ฐ ์์ต๋๋ค. ์์คํ
๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ํ์ธ์."); setIsLoadingSendData(false); @@ -782,7 +786,7 @@ export function RfqVendorTable({ return; } - // ๐น ์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ธฐ์กด ๋ก์ง + // ๐น '๊ตฌ๋งค' ํ์
์ฒจ๋ถํ์ผ์ด ์๋ ๊ฒฝ์ฐ: ๊ธฐ์กด ๋ก์ง setSendDialogData({ rfqInfo: rfqSendData.rfqInfo, attachments: rfqSendData.attachments || [], |
