diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-16 09:26:56 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-16 09:26:56 +0000 |
| commit | 0ee0f102634dd703aea7ad0b8a338eb5e9bdadab (patch) | |
| tree | 4ac06d2198a7457cf9602d3ab300b0e233bbe8be /lib/rfq-last/contract-actions.ts | |
| parent | c49d5a42a66d1d29d477cca2ad56f923313c3961 (diff) | |
(최겸) 구매 견적 비교 수정(create-PO 개발 필)
Diffstat (limited to 'lib/rfq-last/contract-actions.ts')
| -rw-r--r-- | lib/rfq-last/contract-actions.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rfq-last/contract-actions.ts b/lib/rfq-last/contract-actions.ts index 082716a0..1f86352a 100644 --- a/lib/rfq-last/contract-actions.ts +++ b/lib/rfq-last/contract-actions.ts @@ -146,9 +146,10 @@ export async function createGeneralContract(params: CreateGeneralContractParams) .where(eq(rfqPrItems.rfqsLastId, params.rfqId)); // 3. 계약번호 생성 - generateContractNumber 함수 사용 + // 매개변수 순서: (userId, contractType) const contractNumber = await generateContractNumber( - params.contractType, // 계약종류 (UP, LE, IL 등) - rfqData.rfq.picCode || undefined // 발주담당자 코드 + rfqData.rfq.picCode || undefined, // 발주담당자 코드 (userId) + params.contractType // 계약종류 (UP, LE, IL 등) ); // 4. 트랜잭션으로 계약 생성 |
