Commit d53562a4 authored by prane's avatar prane

Effective date related bug fixed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203061 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 240d6edc
......@@ -112,7 +112,7 @@ public class BankRecoPrc extends ProcessEJB implements BankRecoPrcLocal,
bankCode = genericUtility.getColumnValue("bank_code", dom);
effDate = E12GenericUtility.checkNull(genericUtility.getColumnValue("eff_date", dom));
System.out.println();
if (effDate == null || effDate.length() == 0) //add condition by kailasG on 17 june 2019
if (effDate == null || effDate.trim().length() == 0) //add condition by kailasG on 17 june 2019
{
resultString = itmDBAccessEJB.getErrorString("", "VTEMPSTS04", "", "", conn);
return resultString;
......@@ -189,7 +189,7 @@ public class BankRecoPrc extends ProcessEJB implements BankRecoPrcLocal,
if (entryBatchNo == null) {
entryBatchNo = " ";
}
//Added by sarita on 13 JUN 18 to NULL check refDate or tranDate [START]
//Added by sarita on 13 JUgetDataN 18 to NULL check refDate or tranDate [START]
refDate1 = rs.getTimestamp("REF_DATE");
tranDate = rs.getTimestamp("TRAN_DATE");
if(refDate1 != null)
......@@ -320,7 +320,7 @@ public class BankRecoPrc extends ProcessEJB implements BankRecoPrcLocal,
String errCode = "";
String childNodeName = "";
String errString = "";
String effDate = "";
//String effDate = "";
ResultSet rs = null;
Connection conn = null;
// Statement stmt = null;
......@@ -346,11 +346,11 @@ public class BankRecoPrc extends ProcessEJB implements BankRecoPrcLocal,
System.out.println("parentNodeList : ["+parentNodeList+"]");
sql = "SELECT AMOUNT, AMT_ADJ, STATUS, EXCH_RATE FROM BANKTRAN_LOG WHERE TRAN_ID = ? ";// '"+tranId+"'";
pstmt = conn.prepareStatement(sql);
if (effDate == null || effDate.length() == 0) //add condition by kailasG on 19 june 2019
/*if (effDate == null || effDate.length() == 0) //add condition by kailasG on 19 june 2019
{
errString = itmDBAccessEJB.getErrorString("", "VTEMPSTS04", "", "", conn);
return errString;
}
}*/
for (int header = 0; header < parentNodeListLength; header++) {
parentNode = parentNodeList.item(header);
childNodeList = parentNode.getChildNodes();
......@@ -720,8 +720,24 @@ public class BankRecoPrc extends ProcessEJB implements BankRecoPrcLocal,
}//Pavan R on 03-may-18 to visible eff_date during processing
else if (childNodeName.equals("eff_date"))
{
effDate = childNode.getFirstChild().getNodeValue();// call method by kailas gaikwad on 3/6/2019
if(childNode!=null)
{
if(childNode.getFirstChild()!=null)
{
if(childNode.getFirstChild().getNodeValue()!=null)
{
effDate = childNode.getFirstChild().getNodeValue();
}
else
{
effDate="";
}
}
else
{
effDate="";
}
}
}
//Pavan R on 03-may-18 end
System.out.println("tranType["+tranType+"]tranDate["+tranDate+"]bankCode["+bankCode+"]siteCode["+siteCode+"]tranSer["+tranSer+"]" +
......
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