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);