diff options
Diffstat (limited to 'lib/soap/ecc/mapper/rfq-and-pr-mapper.ts')
| -rw-r--r-- | lib/soap/ecc/mapper/rfq-and-pr-mapper.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts index c0557d0c..c1c56cf3 100644 --- a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts +++ b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts @@ -155,6 +155,7 @@ export async function mapECCRfqHeaderToRfqLast( // 담당자 찾기 const inChargeUserInfo = await findUserInfoByEKGRP(eccHeader.EKGRP || null); const inChargeUserId = inChargeUserInfo?.userId || null; + const inChargeUserName = inChargeUserInfo?.userName || null; // 담당자명 추가 // 대표 PR Item 기반으로 projectId, itemCode, itemName, 설계담당자 설정 (없으면 첫번째 PR Item 사용) let projectId: number | null = null; @@ -219,7 +220,7 @@ export async function mapECCRfqHeaderToRfqLast( remark: null, pic: inChargeUserId, // 담당자 ID picCode: eccHeader.EKGRP || null, // 구매그룹코드 - picName: null, // 담당자명은 별도 조회 필요 + picName: inChargeUserName, // 담당자명 (EKGRP로 조회) sentBy: null, createdBy: inChargeUserId || 1, updatedBy: inChargeUserId || 1, |
