summaryrefslogtreecommitdiff
path: root/lib/techsales-rfq/service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/techsales-rfq/service.ts')
-rw-r--r--lib/techsales-rfq/service.ts7
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,
})