From d30cddcd3e225fdffcc6df10b04c97988d355e31 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 9 Aug 2024 11:47:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=A0=EC=B2=AD=EC=84=9C=EC=A0=91?= =?UTF-8?q?=EC=88=98=EC=8B=9C=20=ED=8F=90=EA=B8=B0=EC=88=98=EB=9F=89=20?= =?UTF-8?q?=EC=86=8C=EC=88=AB=EC=A0=90=20=EC=9E=85=EB=A0=A5=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp index 20340ae..12dffc0 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp @@ -192,8 +192,10 @@ let value = e.target.value; if(name === 'dsuseQy') { - let parts = value.replace(/[^0-9.]/g, '').split('.'); - value = parts.shift() + '.' + parts.join(''); + let parts = value.replace(/[^0-9.]/g, '').split('.').filter(d=> d !== ''); + debugger + if(parts.length > 1) value = parts.shift() + '.' + parts.join(''); + else value = parts[0] e.target.value = value; } $P.productList.setValue(key, name, value);