Commit dd7e6850 authored by cshah's avatar cshah

DI1ISUN001 - Added error code for stock does not exist.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91686 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 994db57f
...@@ -142,7 +142,7 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean ...@@ -142,7 +142,7 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean
//System.out.println("sql..............."+sql); //System.out.println("sql..............."+sql);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp( 1, fromDate ); pstmt.setTimestamp( 1, fromDate );
pstmt.setTimestamp( 2, toDate ); pstmt.setTimestamp( 2, toDate );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while( rs.next() ) while( rs.next() )
{ {
...@@ -248,7 +248,6 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean ...@@ -248,7 +248,6 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean
{ {
hm.put(club,inputList); hm.put(club,inputList);
} }
System.out.println("The size of hm is:"+hm.size()); System.out.println("The size of hm is:"+hm.size());
System.out.println("printing hm:"+hm); System.out.println("printing hm:"+hm);
...@@ -282,6 +281,11 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean ...@@ -282,6 +281,11 @@ public class GenDistIssuePrc extends ProcessEJB //implements SessionBean
} }
} }
} }
else
{
//chandni error stock does not exist
errMsgStr = itmDBAccessEJB.getErrorString("","VMILOTV","BASE");
}
if( resultStr != null && !( resultStr.indexOf( "Success" ) > -1 ) ) if( resultStr != null && !( resultStr.indexOf( "Success" ) > -1 ) )
{ {
//msalam on 220609 for showing actual error coming from createDistIssue. //msalam on 220609 for showing actual error coming from createDistIssue.
......
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