From e0659ad08429eed96c8d53d6bf14146d92446eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 19 Feb 2026 17:18:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=ED=98=91=EC=97=85=EC=A7=80=EC=9B=90?= =?UTF-8?q?=EA=B8=88=20=EC=9E=85=EB=A0=A5=203=EC=9E=90=EB=A6=AC=20?= =?UTF-8?q?=EC=BD=A4=EB=A7=88=20=ED=8F=AC=EB=A7=B7=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- resources/views/finance/settlement/index.blade.php | 5 +++++ .../commission/partner-commission-table.blade.php | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/views/finance/settlement/index.blade.php b/resources/views/finance/settlement/index.blade.php index c2be9505..070274d5 100644 --- a/resources/views/finance/settlement/index.blade.php +++ b/resources/views/finance/settlement/index.blade.php @@ -365,6 +365,11 @@ function saveSettlementDate(commissionId, field, value) { }); } + function formatCommissionInput(el) { + const raw = el.value.replace(/,/g, '').replace(/[^0-9]/g, ''); + el.value = raw ? Number(raw).toLocaleString() : ''; + } + function onTenantSelect(managementId) { if (!managementId) return; htmx.ajax('GET', '{{ route("finance.sales-commissions.payment-form") }}?management_id=' + managementId, { diff --git a/resources/views/finance/settlement/partials/commission/partner-commission-table.blade.php b/resources/views/finance/settlement/partials/commission/partner-commission-table.blade.php index e0818abe..ae4601c7 100644 --- a/resources/views/finance/settlement/partials/commission/partner-commission-table.blade.php +++ b/resources/views/finance/settlement/partials/commission/partner-commission-table.blade.php @@ -172,12 +172,13 @@ class="h-6 text-xs px-1 border border-gray-300 rounded cursor-pointer hover:bord {{-- 협업지원금 --}} @if(!$isGroup) - + onfocus="this.value = this.value.replace(/,/g, '')" + onblur="formatCommissionInput(this)" + onchange="saveSettlementDate({{ $commission->id }}, 'referrer_commission', this.value.replace(/,/g, ''))"> @else - @endif