Commit f8bc847f authored by msharma's avatar msharma

Excluded records havving 0 stock qty


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96933 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4bb90fa1
......@@ -444,7 +444,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
{
// 09/04/14 manoharan return xml
retTabSepStrBuff.append("<Detail2>");
//retTabSepStrBuff.append("<Detail2>"); // move inside if
System.out.println("ref_id !!!!!"+rs1.getString("ref_id"));
System.out.println("site_code !!!!!"+rs1.getString("site_code"));
/*----------------changes done by mahendra dated 01/AUG/2014----------------------*/
......@@ -565,12 +565,14 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
pstmt2 = null;
rs3 = null;
double holdQty = holdQuantity==null?0:Double.parseDouble(holdQuantity);
System.out.println("@@@@@ holdQuantity["+holdQuantity+"]holdQty["+holdQty+"]");
if( holdQty > 0 )
{
/*-------------------------------------------------------------------------------*/
retTabSepStrBuff.append("<Detail2>");
//tran_id
//retTabSepStrBuff.append((rs1.getString(1)==null?" ":rs1.getString(1))).append("\t");
//retTabSepStrBuff.append("<tran_id>").append("<![CDATA[" + (rs1.getString(1)==null?" ":rs1.getString(1)) +"]]>").append("</tran_id>");
......@@ -709,6 +711,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
count++;
System.out.println("#####Counter:["+count+"]");
}//end if
}//END WHILE
rs1.close();
pstmt.close();
......@@ -722,6 +725,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
{
errString = itmDBAccessEJB.getErrorString("","VTNOREC1","","",conn);
}
}
else
{
......@@ -828,10 +832,10 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
throw new ITMException(e);
}
return retStr;
}//END OF PROCESS (1)
}//END OF PROCESS (1)
public String process(String xmlString, String xmlString2, String windowName, String xtraParams,Connection conn) throws RemoteException,ITMException
{
public String process(String xmlString, String xmlString2, String windowName, String xtraParams,Connection conn) throws RemoteException,ITMException
{
GenericUtility genericUtility = GenericUtility.getInstance();
String retStr = "",tranId="",sql="",errString="",lockCode="",holdStatus="";//xmlString="",
ResultSet rs = null;
......@@ -1111,10 +1115,10 @@ public String process(String xmlString, String xmlString2, String windowName, St
}
}
return errString;
}
}
private String generateTranId( String windowName, String siteCode, String tranDateStr, Connection conn )throws ITMException
{
private String generateTranId( String windowName, String siteCode, String tranDateStr, Connection conn )throws ITMException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
String selSql = "";
......
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