style: Pint 포맷팅 적용
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
namespace App\Services\Sales;
|
||||
|
||||
use App\Models\Sales\SalesTenantManagement;
|
||||
use App\Models\Tenants\Tenant;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* 개발 승인 관리 서비스
|
||||
@@ -168,8 +166,8 @@ public function reject(int $id, string $reason): SalesTenantManagement
|
||||
|
||||
// notes 필드에 반려 사유 추가
|
||||
$currentNotes = $management->notes ?? '';
|
||||
$rejectionNote = '[반려 ' . now()->format('Y-m-d H:i') . '] ' . $reason;
|
||||
$newNotes = $currentNotes ? $currentNotes . "\n" . $rejectionNote : $rejectionNote;
|
||||
$rejectionNote = '[반려 '.now()->format('Y-m-d H:i').'] '.$reason;
|
||||
$newNotes = $currentNotes ? $currentNotes."\n".$rejectionNote : $rejectionNote;
|
||||
|
||||
$management->update([
|
||||
'notes' => $newNotes,
|
||||
@@ -186,7 +184,7 @@ public function updateHqStatus(int $id, string $status): SalesTenantManagement
|
||||
$management = SalesTenantManagement::findOrFail($id);
|
||||
|
||||
// 유효한 상태인지 확인
|
||||
if (!array_key_exists($status, SalesTenantManagement::$hqStatusLabels)) {
|
||||
if (! array_key_exists($status, SalesTenantManagement::$hqStatusLabels)) {
|
||||
throw new \InvalidArgumentException('유효하지 않은 상태입니다.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user