diff --git a/src/com/pms/service/ApprovalService.java b/src/com/pms/service/ApprovalService.java index a1837f3..eff184a 100644 --- a/src/com/pms/service/ApprovalService.java +++ b/src/com/pms/service/ApprovalService.java @@ -3617,9 +3617,9 @@ public class ApprovalService { long num = Math.round(((Number) value).doubleValue()); return String.format("%,d", num); } - String strVal = value.toString().replaceAll("[^0-9.\\-]", ""); + String strVal = value.toString().replaceAll("[^0-9.eE\\-]", ""); if(strVal.isEmpty()) return "0"; - if(strVal.contains(".")) { + if(strVal.contains(".") || strVal.contains("E") || strVal.contains("e")) { long num = Math.round(Double.parseDouble(strVal)); return String.format("%,d", num); } @@ -3641,7 +3641,7 @@ public class ApprovalService { if(value instanceof Number) { num = ((Number) value).doubleValue(); } else { - String strVal = value.toString().replaceAll("[^0-9.\\-]", ""); + String strVal = value.toString().replaceAll("[^0-9.eE\\-]", ""); if(strVal.isEmpty()) return "0.00"; num = Double.parseDouble(strVal); }