Commit 926ad4a1 authored by ngadkari's avatar ngadkari

change in if condition

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@199054 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d0dad723
......@@ -5175,7 +5175,22 @@ public class InvAcct
{
invOnline = "N";
}
if ("N".equals(invOnline))
//added by Rutuja on 22-Mar-16 for req. Id. FI2LSUN009 -for branch accounting posting
sql = "select r.tran_type as tran_type, t.transfer_acct_req as transfer_acct_req from distord_rcp r,distorder_type t where t.tran_type = r.tran_type and r.tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
tranType = rs.getString("tran_type");
transferAcctReq = rs.getString("transfer_acct_req");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if ("N".equals(invOnline) && "N".equals(transferAcctReq))
{
return "";
}
......@@ -5246,7 +5261,8 @@ public class InvAcct
pstmt.close();
pstmt = null;
}
//added by Rutuja on 22-Mar-16 for req. Id. FI2LSUN009 -for branch accounting posting
// Commented by nandkumar gadkari on 2/04/19
/* //added by Rutuja on 22-Mar-16 for req. Id. FI2LSUN009 -for branch accounting posting
sql = "select r.tran_type as tran_type, t.transfer_acct_req as transfer_acct_req from distord_rcp r,distorder_type t where t.tran_type = r.tran_type and r.tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
......@@ -5260,7 +5276,7 @@ public class InvAcct
rs.close();
rs = null;
pstmt.close();
pstmt = null;
pstmt = null;*/
// 27-dec-2018 manoharan commented as the condition below this with combination of inveOnline and transferAcctReq is the correct one
//if ("N".equals(transferAcctReq))
//{
......
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