diff --git a/salesmanagement/index.php b/salesmanagement/index.php
index c8824f3..4ce5e43 100644
--- a/salesmanagement/index.php
+++ b/salesmanagement/index.php
@@ -5096,8 +5096,8 @@
// 1차 선택: 동적 패키지 관리
const [selectedPackageIds, setSelectedPackageIds] = useState([]);
- // 2차 선택: 선택모델의 세부 모델들
const [selectedModels, setSelectedModels] = useState([]);
+ const [salesMode, setSalesMode] = useState('direct'); // 'direct' (직접영업) or 'manager' (영업사원 실적관리)
// DB에서 가격 정보 가져오기
useEffect(() => {
@@ -5173,7 +5173,8 @@
}
});
- const totalCommission = totalSellerCommission + totalManagerCommission + totalEducatorCommission;
+ const displayCommission = salesMode === 'direct' ? totalSellerCommission : totalManagerCommission;
+ const totalCommission = displayCommission + totalEducatorCommission;
const totalRevenue = totalJoinFee; // 구독료 제거
const commissionRate = totalRevenue > 0 ? ((totalCommission / totalRevenue) * 100).toFixed(1) : 0;
@@ -5271,12 +5272,46 @@
+ * 직접영업: 본인이 직접 계약 시 (판매자 수당 발생)
+ * 영업사원: 소속 사원이 계약 시 (관리자 수당 발생)
+