Commit ec85d2fb authored by arawankar's avatar arawankar

MiscVoucherIC.java

-changes made in bill_date validation
-tran_id set as '*'(Previously it was set as blank).
-For blank tran_id system unable to fetch correct number of records.

ReceivablesOpeningConf.java
-Connection closing related issue.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196885 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f7acb0f9
...@@ -626,7 +626,10 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -626,7 +626,10 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
tranId = genericUtility.getColumnValue("tran_id", dom); tranId = genericUtility.getColumnValue("tran_id", dom);
if(tranId == null) if(tranId == null)
{ {
tranId = ""; //Modified by Anjali R. on [08/02/2019][Record not found if tran_id set as empty][Start]
//tranId = "";
tranId = "*";
//Modified by Anjali R. on [08/02/2019][Record not found if tran_id set as empty][End]
} }
if(billDate != null && billDate.trim().length() > 0) if(billDate != null && billDate.trim().length() > 0)
{ {
...@@ -2109,7 +2112,10 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -2109,7 +2112,10 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lineNo = checkNull(genericUtility.getColumnValue("line_no", dom2)); lineNo = checkNull(genericUtility.getColumnValue("line_no", dom2));
if(tranId == null) if(tranId == null)
{ {
tranId = ""; //Modified by Anjali R. on [08/02/2019][Record not found if tran_id set as empty][Start]
//tranId = "";
tranId = "*";
//Modified by Anjali R. on [08/02/2019][Record not found if tran_id set as empty][End]
} }
if(billDate != null && billDate.trim().length() > 0) if(billDate != null && billDate.trim().length() > 0)
{ {
......
...@@ -148,9 +148,9 @@ public class ReceivablesOpeningConf extends ActionHandlerEJB implements Receivab ...@@ -148,9 +148,9 @@ public class ReceivablesOpeningConf extends ActionHandlerEJB implements Receivab
try try
{ {
//Changes and Commented By Bhushan on 06-06-2016 :START //Changes and Commented By Bhushan on 06-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 06-06-2016 :END //Changes and Commented By Bhushan on 06-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
} }
catch(Exception e) catch(Exception e)
...@@ -1017,7 +1017,7 @@ conn = getConnection(); ...@@ -1017,7 +1017,7 @@ conn = getConnection();
{ {
System.out.println("Closing Connection......"); System.out.println("Closing Connection......");
//conn.close(); //conn.close();
conn = null; //conn = null;//Modified by Anjali R. on [07/02/2019]
} }
} }
catch(SQLException se) catch(SQLException se)
...@@ -1067,11 +1067,13 @@ conn = getConnection(); ...@@ -1067,11 +1067,13 @@ conn = getConnection();
pstmt = null; pstmt = null;
} }
if (conn != null)//Added by Jiten 27/07/06 //Modified by Anjali R. on [07/02/2019][Start]
/*if (conn != null)//Added by Jiten 27/07/06
{ {
conn.close(); conn.close();
conn = null; conn = null;
} }*/
//Modified by Anjali R. on [07/02/2019][End]
} }
catch(Exception e) catch(Exception e)
{ {
......
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