Skip to content

Dev#63

Merged
DonjJin-github merged 2 commits intomainfrom
dev
Nov 12, 2025
Merged

Dev#63
DonjJin-github merged 2 commits intomainfrom
dev

Conversation

@parkji1on
Copy link
Contributor

요약

  • 이 PR의 목적과 배경을 한 줄로 설명해주세요.

주요 변경 사항

  • 변경 요약 1
  • 변경 요약 2

관련 이슈

  • Closes #번호 (예: Closes #123)

테스트/검증

  • 어떻게 검증했는지, 영향 범위는 어디인지 간략히 적어주세요.

확인 사항

  • 자기 리뷰 완료
  • 빌드/테스트 통과 확인
  • 문서/주석 업데이트(필요 시)
  • 브레이킹 체인지 없음 또는 마이그레이션 안내 포함

스크린샷/로그(선택)

  • 필요 시 첨부

@github-actions
Copy link

PR 검증 성공

브랜치: devmain
커밋: 868c85e

모든 검증을 통과했습니다. 리뷰를 요청해주세요.

워크플로우 로그 확인

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the alarm type for purchase order notifications from AlarmType.PR (Purchase Request - 구매부) to AlarmType.SD (Sales Document - 영업부) across four different alarm scenarios in the PurchaseOrderServiceImpl service.

Key Changes

  • Modified alarm type from PR to SD for purchase order approval notifications
  • Modified alarm type from PR to SD for purchase order rejection notifications
  • Modified alarm type from PR to SD for delivery start notifications
  • Modified alarm type from PR to SD for delivery completion notifications

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.source(SourceType.SCM.name())
.alarmId(UuidCreator.getTimeOrderedEpoch().toString())
.alarmType(AlarmType.PR)
.alarmType(AlarmType.SD)
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from AlarmType.PR to AlarmType.SD is incorrect. Purchase Orders belong to the procurement department (구매부) and should use AlarmType.PR, not AlarmType.SD which is for sales operations (영업부). This inconsistency affects the alarm categorization system.

Suggested change
.alarmType(AlarmType.SD)
.alarmType(AlarmType.PR)

Copilot uses AI. Check for mistakes.
.source(SourceType.SCM.name())
.alarmId(UuidCreator.getTimeOrderedEpoch().toString())
.alarmType(AlarmType.PR)
.alarmType(AlarmType.SD)
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from AlarmType.PR to AlarmType.SD is incorrect. Purchase Orders belong to the procurement department (구매부) and should use AlarmType.PR, not AlarmType.SD which is for sales operations (영업부). This inconsistency affects the alarm categorization system.

Suggested change
.alarmType(AlarmType.SD)
.alarmType(AlarmType.PR)

Copilot uses AI. Check for mistakes.
.source(SourceType.SCM.name())
.alarmId(UuidCreator.getTimeOrderedEpoch().toString())
.alarmType(AlarmType.PR)
.alarmType(AlarmType.SD)
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from AlarmType.PR to AlarmType.SD is incorrect. Purchase Orders belong to the procurement department (구매부) and should use AlarmType.PR, not AlarmType.SD which is for sales operations (영업부). This inconsistency affects the alarm categorization system.

Suggested change
.alarmType(AlarmType.SD)
.alarmType(AlarmType.PR)

Copilot uses AI. Check for mistakes.
.source(SourceType.SCM.name())
.alarmId(UuidCreator.getTimeOrderedEpoch().toString())
.alarmType(AlarmType.PR)
.alarmType(AlarmType.SD)
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from AlarmType.PR to AlarmType.SD appears to be incorrect. Based on the enum definitions:

  • AlarmType.PR = Purchase Request (구매부)
  • AlarmType.SD = Sales Document (영업부)

The LinkType enum clearly categorizes PURCHASE_ORDER under the PR (구매부) section, not SD (영업부). Additionally, the related PurchaseRequisitionServiceImpl correctly uses AlarmType.PR for purchase requisitions.

Since this service handles Purchase Orders (발주서), which are procurement/purchasing operations (구매부), the alarm type should be AlarmType.PR, not AlarmType.SD. Sales Document (SD) is intended for sales operations (영업부) like quotations and sales orders.

Consider reverting this change to use AlarmType.PR.

Suggested change
.alarmType(AlarmType.SD)
.alarmType(AlarmType.PR)

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@DonjJin-github DonjJin-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다

@DonjJin-github DonjJin-github merged commit 3c78326 into main Nov 12, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants