diff --git a/src/components/material/ReceivingManagement/ReceivingDetail.tsx b/src/components/material/ReceivingManagement/ReceivingDetail.tsx index 4d749970..0e37a389 100644 --- a/src/components/material/ReceivingManagement/ReceivingDetail.tsx +++ b/src/components/material/ReceivingManagement/ReceivingDetail.tsx @@ -722,7 +722,9 @@ export function ReceivingDetail({ id, mode = 'view' }: Props) { // ===== 커스텀 헤더 액션 (view/edit 모드) ===== // 수정 버튼은 IntegratedDetailTemplate의 DetailActions에서 아이콘으로 제공하므로 중복 제거 // 수입검사하기 버튼은 수입검사 성적서 템플릿이 있는 품목만 표시 - const customHeaderActions = (isViewMode || isEditMode) && detail && hasInspectionTemplate ? ( + // 수입검사 버튼 표시 조건: 템플릿이 있거나 이미 검사 완료된 경우 + const showInspectionActions = hasInspectionTemplate || !!detail?.inspectionResult || !!detail?.inspectionDate; + const customHeaderActions = (isViewMode || isEditMode) && detail && showInspectionActions ? (