From 5a35e3fdfc66bb57668785f095463846665d5a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 20 Feb 2026 13:30:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EB=82=A9=EC=9E=85=EC=9D=BC=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EC=8B=9C=20=ED=86=B5=ED=95=A9=EC=A0=95=EC=82=B0=20?= =?UTF-8?q?=EC=9E=85=EA=B8=88=EC=9D=BC(payment=5Fdate)=EB=8F=84=20?= =?UTF-8?q?=ED=95=A8=EA=BB=98=20=EB=8F=99=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- app/Http/Controllers/Sales/AdminProspectController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Sales/AdminProspectController.php b/app/Http/Controllers/Sales/AdminProspectController.php index a41b20ad..5b711678 100644 --- a/app/Http/Controllers/Sales/AdminProspectController.php +++ b/app/Http/Controllers/Sales/AdminProspectController.php @@ -448,9 +448,10 @@ public function updateCommissionDate(int $id, Request $request) $updateData[$autoField] = $autoDate; } - // 납입일 변경 시 지급예정일(scheduled_payment_date)도 재계산 + // 납입일 변경 시 지급예정일 + 입금일(payment_date)도 함께 업데이트 if (in_array($field, ['first_payment_at', 'second_payment_at'])) { $updateData['scheduled_payment_date'] = \Carbon\Carbon::parse($date)->addMonth()->day(10)->format('Y-m-d'); + $updateData['payment_date'] = $date; } $commission->update($updateData);