Commit 0e96ae62 authored by mjadhav's avatar mjadhav

add validation for lot and item level lock


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96834 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a71afe0b
......@@ -527,7 +527,15 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
String locCode = null;
locCode = genericUtility.getColumnValue( "loc_code", dom, "2" );
System.out.println("locCode :"+locCode);
if(locCode != null && (lockLevel.equalsIgnoreCase("L") || lockLevel.equalsIgnoreCase("I")))
{
errCode = "VMINVLCCD";
errString = getErrorString( "lot_no", errCode, userId );
System.out.println("Location Code blank in Item level or Lot Level!!!!!");
break;
}
if( locCode != null )
......@@ -591,7 +599,13 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
System.out.println("Lot no cannot be blank!!!!!");
break;
}
if(lockLevel.equalsIgnoreCase("I") && lotNo != null )
{
errCode = "VMINVLTNO";
errString = getErrorString( "lot_no", errCode, userId );
System.out.println("Lot no blank in Item level!!!!!");
break;
}
if( lineNoSlPrsnt )
{
......@@ -605,6 +619,14 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
{
String lotSl = null;
lotSl = genericUtility.getColumnValue( "lot_sl", dom, "2" );
System.out.println("lotSl :"+lotSl);
if(lotSl != null && (lockLevel.equalsIgnoreCase("L") || lockLevel.equalsIgnoreCase("I")))
{
errCode = "VMINVLTSL";
errString = getErrorString( "lot_sl", errCode, userId );
System.out.println("Lot SL blank in Item level!!!!!");
break;
}
if( lineNoSlPrsnt )
{
......
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