Commit be66d183 authored by jshinde's avatar jshinde

Request W15GSUN001,Create transaction screen Pallet Request .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98882 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 540376a8
......@@ -86,7 +86,6 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
String empCodeAprv = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
String siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSite");
System.out.println(" site code ["+siteCode+"]");
SimpleDateFormat today = new SimpleDateFormat( genericUtility.getDBDateTimeFormat());
SimpleDateFormat sdf = new SimpleDateFormat( genericUtility.getDBDateTimeFormat());
Date confDate = new Date();
confDateStr = sdf.format(confDate);
......@@ -103,11 +102,11 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
rs.close();
pstmt.close();
if (confirmed != null && confirmed.equalsIgnoreCase("Y")) {
// if already confirm then show error
if (confirmed != null && confirmed.equalsIgnoreCase("Y"))
{
System.out.println("error" +errString);
errString = itmdbAccess.getErrorString("", "VMTRANSCOF", "", "",
conn);
conn);// if already confirm then show error
return errString;
}
......
......@@ -299,6 +299,25 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
}
rs.close();
pstmt.close();
String sql1 = "SELECT COUNT(1) FROM STOCK WHERE INV_STAT =? AND LOC_CODE=? AND QUANTITY>0";
pstmt = conn.prepareStatement(sql1);
pstmt.setString(1, "AWMS");
pstmt.setString(2, palletNo);
rs = pstmt.executeQuery();
if(rs.next())
{
System.out.println("count from stock" +rs.getInt(1));
if(rs.getInt(1)==0)
{
errCode = "VMPALLETQN";//pallet quantity should be more than zero
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
rs.close();
pstmt.close();
}
}
if("E".equalsIgnoreCase(editFlag))
......
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