Commit 87826ff8 authored by ssalve's avatar ssalve

Sarita : Commented Validation for item_code for Inventory type [0] and lot_sl...

Sarita : Commented Validation for item_code for Inventory type [0] and lot_sl and shifted to post save due to performance issue.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188091 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7d406797
......@@ -368,7 +368,8 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
}
}
//}
if("0".equalsIgnoreCase(inverntoryType))
// Commented by sarita due to performance issue inverntoryType validation shifted to post save on [24 JUL 18] [START]
/* if("0".equalsIgnoreCase(inverntoryType))
{
int detlCnt1 = getNumOfNonDelDetail(dom2,2); System.out.println("Detal Count in Itemchange ::::["+detlCnt1+"]");
if(detlCnt1 >= 1)
......@@ -387,12 +388,13 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
}
if(!(DetItemCodeList.contains(itemCode)))
{
errCode = "VTITEMINVT";//"VTITEMINVT";
errCode = "VTITEMINVT";//"VTITEMINVT";//Selected Header Item is mandatory to Insert for Inventory Type Item.
errList.add(errCode);
errFields.add("item_code");
}
}
}
}*/
// Commented by sarita due to performance issue inverntoryType validation shifted to post save on [24 JUL 18] [END]
}//end of validation for item_code
/*else if("lot_no".equalsIgnoreCase(childNodeName))
......@@ -445,13 +447,17 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
lotNo = checkNullAndTrim(genericUtility.getColumnValue("lot_no",dom)).trim();
System.out.println("Lot SL Validation in Detail :::: [itemCode["+itemCode+"] , lotSl["+lotSl+"] , lotNo["+lotNo+"]]");
if(lotSl == null || lotSl.trim().length() == 0)
//changes and commented by sarita on 24 JULY 18
// if(lotSl == null || lotSl.trim().length() == 0)
if(lotSl == null || lotSl.length() == 0)
{
errCode = "VTLTSLBLNK";
errList.add(errCode);
errFields.add("lot_sl");
}
if(lotSl != null && lotSl.length() > 0)
//changes and commented by sarita on 24 JULY 18
//if(lotSl != null && lotSl.length() > 0)
else
{
sql = "select count(*) as cnt from stock where item_code=? and lot_no=? and lot_sl=? and quantity > 0";
pstmt = conn.prepareStatement(sql);
......@@ -480,7 +486,8 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
errFields.add("lot_sl");
}
//Added by sarita on 18MARCH2018
else
// Commented by sarita due to performance issue lot_sl validation shifted to post save on [24 JUL 18] [START]
/* else
{
System.out.println("Value of ItemCode and LotNumber in Details Screen : +itemCode["+itemCode+"] , lotNo["+lotNo+"]");
System.out.println("detailString value is =="+genericUtility.serializeDom(dom2));
......@@ -511,7 +518,8 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
}
}
}
}
}*/
// Commented by sarita due to performance issue lot_sl validation shifted to post save on [24 JUL 18] [END]
}
}//end of validation for lot_sl
......@@ -989,7 +997,8 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
return msgType;
}//end of method errorType
public int getNumOfNonDelDetail(Document dom2,int detailNo) throws ITMException
//Commented by sarita on 24 JULY 18 [START]
/* public int getNumOfNonDelDetail(Document dom2,int detailNo) throws ITMException
{
Node childNode = null;
NodeList updateList;
......@@ -1055,7 +1064,8 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
throw new ITMException(e);
}
return AttribValue;
}//end of method getAttributeVal
}//end of method getAttributeVal*/
//Commented by sarita on 24 JULY 18 [END]
/* private int duplicateDetailRecoeds(String itemCode , String lotNo, String lotSl,Document dom2) throws ITMException
{
......
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