summaryrefslogtreecommitdiff
path: root/lib/bidding/pre-quote/service.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-09-04 10:51:24 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-09-04 10:51:24 +0000
commitb6c9ac31358206ad291583d4b045cc5d83ca3987 (patch)
tree864e94f278022382fbc43e99b5ee1ca531975ed4 /lib/bidding/pre-quote/service.ts
parent13dc007de652ce3da2a5e85d2cdccafe2288dea9 (diff)
(최겸) 구매 입찰내 입찰 조건, 사전견적 기능, 품목별 견적 작성 개발
Diffstat (limited to 'lib/bidding/pre-quote/service.ts')
-rw-r--r--lib/bidding/pre-quote/service.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bidding/pre-quote/service.ts b/lib/bidding/pre-quote/service.ts
index bf7a4538..c34f6f9e 100644
--- a/lib/bidding/pre-quote/service.ts
+++ b/lib/bidding/pre-quote/service.ts
@@ -663,6 +663,8 @@ export async function getPrItemsForBidding(biddingId: number) {
// SPEC 문서 조회 (PR 아이템에 연결된 문서들)
export async function getSpecDocumentsForPrItem(prItemId: number) {
try {
+ console.log('getSpecDocumentsForPrItem called with prItemId:', prItemId)
+
const specDocs = await db
.select({
id: biddingDocuments.id,
@@ -678,10 +680,11 @@ export async function getSpecDocumentsForPrItem(prItemId: number) {
.where(
and(
eq(biddingDocuments.prItemId, prItemId),
- eq(biddingDocuments.documentType, 'specification')
+ eq(biddingDocuments.documentType, 'spec_document')
)
)
+ console.log('getSpecDocumentsForPrItem result:', specDocs)
return specDocs
} catch (error) {
console.error('Failed to get spec documents for PR item:', error)