diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-04 09:40:21 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-04 09:40:21 +0000 |
| commit | 459873f983cf1468f778109df4c7953c5d40743d (patch) | |
| tree | 63393cf8fa24a4c76219a250893eb2cbcf0aabb7 /lib/techsales-rfq/service.ts | |
| parent | 53ad72732f781e6c6d5ddb3776ea47aec010af8e (diff) | |
(최겸) 기술영업 요구사항 반영
Diffstat (limited to 'lib/techsales-rfq/service.ts')
| -rw-r--r-- | lib/techsales-rfq/service.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/techsales-rfq/service.ts b/lib/techsales-rfq/service.ts index afbd2f55..e3543752 100644 --- a/lib/techsales-rfq/service.ts +++ b/lib/techsales-rfq/service.ts @@ -2913,6 +2913,12 @@ function getTechSalesRevalidationPath(rfqType: "SHIP" | "TOP" | "HULL"): string export async function addTechVendorsToTechSalesRfq(input: {
rfqId: number;
vendorIds: number[];
+ vendorFlags?: Record<string, {
+ isCustomerPreferred?: boolean;
+ isNewDiscovery?: boolean;
+ isProjectApproved?: boolean;
+ isShiProposal?: boolean;
+ }>;
createdBy: number;
}) {
unstable_noStore();
@@ -2972,6 +2978,7 @@ export async function addTechVendorsToTechSalesRfq(input: { vendorId: vendorId,
status: "Assigned", // Draft가 아닌 Assigned 상태로 생성
quotationVersion: null, // 리비전은 견적 제출 시에만 생성
+ vendorFlags: input.vendorFlags?.[vendorId.toString()] || null, // 벤더 구분자 정보 추가
createdBy: input.createdBy,
updatedBy: input.createdBy,
})
|
