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 ...@@ -444,7 +444,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
{ {
// 09/04/14 manoharan return xml // 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("ref_id !!!!!"+rs1.getString("ref_id"));
System.out.println("site_code !!!!!"+rs1.getString("site_code")); System.out.println("site_code !!!!!"+rs1.getString("site_code"));
/*----------------changes done by mahendra dated 01/AUG/2014----------------------*/ /*----------------changes done by mahendra dated 01/AUG/2014----------------------*/
...@@ -565,12 +565,14 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv ...@@ -565,12 +565,14 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
pstmt2 = null; pstmt2 = null;
rs3 = 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 //tran_id
//retTabSepStrBuff.append((rs1.getString(1)==null?" ":rs1.getString(1))).append("\t"); //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>"); //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 ...@@ -709,6 +711,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
count++; count++;
System.out.println("#####Counter:["+count+"]"); System.out.println("#####Counter:["+count+"]");
}//end if
}//END WHILE }//END WHILE
rs1.close(); rs1.close();
pstmt.close(); pstmt.close();
...@@ -722,6 +725,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv ...@@ -722,6 +725,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
{ {
errString = itmDBAccessEJB.getErrorString("","VTNOREC1","","",conn); errString = itmDBAccessEJB.getErrorString("","VTNOREC1","","",conn);
} }
} }
else else
{ {
...@@ -828,10 +832,10 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv ...@@ -828,10 +832,10 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
throw new ITMException(e); throw new ITMException(e);
} }
return retStr; 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(); GenericUtility genericUtility = GenericUtility.getInstance();
String retStr = "",tranId="",sql="",errString="",lockCode="",holdStatus="";//xmlString="", String retStr = "",tranId="",sql="",errString="",lockCode="",holdStatus="";//xmlString="",
ResultSet rs = null; ResultSet rs = null;
...@@ -1111,10 +1115,10 @@ public String process(String xmlString, String xmlString2, String windowName, St ...@@ -1111,10 +1115,10 @@ public String process(String xmlString, String xmlString2, String windowName, St
} }
} }
return errString; 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; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
String selSql = ""; 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