Commit e40fd767 authored by dsawant's avatar dsawant

updated for lotsl and lot no blank allow


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94605 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a648c1d9
......@@ -1958,8 +1958,8 @@ public class InvAcct
amt_old=rs.getDouble(5);
itemCode=checkNull(rs.getString(6));
locCode=checkNull(rs.getString(7));
lotNo=checkNull(rs.getString(8));
lotSl=checkNull(rs.getString(9));
lotNo=rs.getString(8);
lotSl=rs.getString(9);
itemSer=checkNull(rs.getString(10));
acctCdInv = checkNull(rs.getString(11));
acctCdInvR = checkNull(rs.getString(12));
......
......@@ -71,6 +71,10 @@ public class StockValAdjTran extends ValidatorEJB implements StockValAdjTranLoca
int childNodeListLength;
String oRate="",tranType="";
double rate =0;
String oldRate="";
double conoldate= 0.0,highval = 0.0;
ConnDriver connDriver = new ConnDriver();
try
......@@ -466,7 +470,7 @@ public class StockValAdjTran extends ValidatorEJB implements StockValAdjTranLoca
{
lotNo = genericUtility.getColumnValue("lot_no",dom);
if (lotNo == null || lotNo.trim().length() == 0 )
if (lotNo == null || lotNo.length() == 0 )
{
errCode = "STKVALLONO";
errString = getErrorString("lot_no",errCode,userId);
......@@ -499,7 +503,7 @@ public class StockValAdjTran extends ValidatorEJB implements StockValAdjTranLoca
lotSl = genericUtility.getColumnValue("lot_sl",dom);
siteCode = genericUtility.getColumnValue("site_code",dom1);
if (lotSl == null || lotSl.trim().length() == 0 )
if (lotSl == null || lotSl.length() == 0 )
{
errCode = "STKVALLOSL";
errString = getErrorString("lot_sl",errCode,userId);
......@@ -570,7 +574,18 @@ public class StockValAdjTran extends ValidatorEJB implements StockValAdjTranLoca
}
oldRate = checkNull(genericUtility.getColumnValue("rate__old",dom));
conoldate = Double.parseDouble(oldRate);
System.out.println("rate is"+conoldate);
highval = 99999999999.999;
if(conoldate > highval || rate > highval)
{
errCode = "VTITCOINA";
errString = getErrorString("quantity",errCode,userId);
break;
}
}
......
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