diff --git a/app/Http/Controllers/Sales/SalesDashboardController.php b/app/Http/Controllers/Sales/SalesDashboardController.php index 6071f138..50eb34de 100644 --- a/app/Http/Controllers/Sales/SalesDashboardController.php +++ b/app/Http/Controllers/Sales/SalesDashboardController.php @@ -179,8 +179,8 @@ private function getDashboardData(Request $request): array $handoverTotalRegFee = SalesContractProduct::whereIn('management_id', $handoverManagementIds) ->sum('registration_fee'); - // 수당 계산: 개발비 × 50% × 요율% (개인 20% → 10%, 단체 30% → 15%) - $handoverPartnerRate = $isGroupPartner ? 0.15 : 0.10; + // 수당 계산: 개발비 × 요율% (개인 20%, 단체 30%) - 1차/2차 분할은 calculateExpectedCommissionSummary에서 처리 + $handoverPartnerRate = $isGroupPartner ? 0.30 : 0.20; $handoverPartnerCommission = (int)($handoverTotalRegFee * $handoverPartnerRate); // 내가 매니저로 지정된 인계 완료 건의 수당 계산 @@ -278,7 +278,7 @@ private function getDashboardData(Request $request): array ->toArray(); $devInProgressRegFee = SalesContractProduct::whereIn('management_id', $devInProgressManagementIds) ->sum('registration_fee'); - $expectedFromDevInProgress = (int)($devInProgressRegFee * $handoverPartnerRate); // 개발비 × 요율 (개인 10%, 단체 15%) + $expectedFromDevInProgress = (int)($devInProgressRegFee * $handoverPartnerRate); // 개발비 × 요율 (개인 20%, 단체 30%) // 2) 인계 완료 중 지급 미완료 건 $handoverUnpaidRegFee = SalesContractProduct::whereIn('management_id', $handoverManagementIds)