Commit d78e96c1 authored by manohar's avatar manohar

duplicate rounding function removed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95818 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3432b48f
...@@ -8615,23 +8615,7 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -8615,23 +8615,7 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
return value; return value;
} }
private double getReqDecimal(double actVal, int prec)
{
String fmtStr = "############0";
String strValue = null;
double retVal = 0;
if (prec > 0)
{
fmtStr = fmtStr + "." + "000000000".substring(0, prec);
}
DecimalFormat decFormat = new DecimalFormat(fmtStr);
retVal = Double.parseDouble(decFormat.format(actVal));
if (Math.abs(retVal) == 0)
{
retVal = 0;
}
return retVal;
}
private String checkNull(String input) private String checkNull(String input)
{ {
if (input == null) if (input == null)
......
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