Commit 4ad58ed1 authored by mnair's avatar mnair

changes in checknull method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184722 ce508802-f39f-4f6c-b175-0d175dae99d5
parent af8d824a
...@@ -13145,15 +13145,16 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -13145,15 +13145,16 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
return input.trim(); return input.trim();
} }
//Added By PriyankaC on 1FEB2018..[END] //Added By PriyankaC on 1FEB2018..[END]
private String checkNull(String str) { //Changes by mayur on 10-MAY-2018--START
if (str == null) { private String checkNull(String input)
return ""; {
} else { if (input == null || "null".equalsIgnoreCase(input) || "undefined".equalsIgnoreCase(input))
return str; {
input= "";
} }
return input.trim();
} }
//Changes by mayur on 10-MAY-2018--END
private double checkIntNull(String str) { private double checkIntNull(String str) {
if (str == null || str.trim().length() == 0) { if (str == null || str.trim().length() == 0) {
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment