fix:updateSalesPartner의 partner_type도 'individual'로 수정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-14 11:17:24 +09:00
parent c9e8ae5dd4
commit 0eb4baffef

View File

@@ -114,7 +114,7 @@ public function updateSalesPartner(User $user, array $data, array $documents = [
$sp = SalesPartner::firstOrNew(['user_id' => $user->id]);
if (!$sp->exists) {
$sp->partner_code = SalesPartner::generatePartnerCode();
$sp->partner_type = 'sales';
$sp->partner_type = 'individual';
$sp->status = 'active';
}
$sp->company_name = $data['company_name'] ?? $sp->company_name;