Commit 418b1477 authored by msingh's avatar msingh

Change by Manish on 10/11/16 for purchase receipt.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103880 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 350f2e3b
...@@ -2131,7 +2131,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2131,7 +2131,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if(rs1.next()) if(rs1.next())
{ {
postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type"); // postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type");
postType = rs1.getString("post_type") == null ? "" : rs1.getString("post_type"); //Changed by Manish on 10/11/16
} }
if (rs1 != null) if (rs1 != null)
{ {
...@@ -2144,7 +2145,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2144,7 +2145,8 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
pstmt1 = null; pstmt1 = null;
} }
if(postType==null) //if(postType==null)
if(postType == "")
{ {
postType="A"; postType="A";
} }
......
...@@ -2143,7 +2143,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal ...@@ -2143,7 +2143,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if(rs1.next()) if(rs1.next())
{ {
postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type"); //postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type");
postType = rs1.getString("post_type") == null ? "" : rs1.getString("post_type"); //Changed by Manish on 10/11/16
} }
if (rs1 != null) if (rs1 != null)
{ {
...@@ -2156,7 +2157,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal ...@@ -2156,7 +2157,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
pstmt1 = null; pstmt1 = null;
} }
if(postType==null) //if(postType==null)
if(postType=="")
{ {
postType="A"; postType="A";
} }
......
...@@ -2904,7 +2904,8 @@ public class PoRcpRmPmIC extends ValidatorEJB implements PoRcpRmPmICRemote, PoRc ...@@ -2904,7 +2904,8 @@ public class PoRcpRmPmIC extends ValidatorEJB implements PoRcpRmPmICRemote, PoRc
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if(rs1.next()) if(rs1.next())
{ {
postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type"); //postType = rs1.getString("post_type") == null ? "" : rs.getString("post_type");
postType = rs1.getString("post_type") == null ? "" : rs1.getString("post_type"); //Changed by Manish on 10/11/16
} }
if (rs1 != null) if (rs1 != null)
{ {
...@@ -2917,7 +2918,8 @@ public class PoRcpRmPmIC extends ValidatorEJB implements PoRcpRmPmICRemote, PoRc ...@@ -2917,7 +2918,8 @@ public class PoRcpRmPmIC extends ValidatorEJB implements PoRcpRmPmICRemote, PoRc
pstmt1 = null; pstmt1 = null;
} }
if(postType==null) //if(postType==null)
if(postType=="")
{ {
postType="A"; postType="A";
} }
......
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