Commit 53090488 authored by arawankar's avatar arawankar

MiscPayAutoPrc.java

-Changes made to add parameters in sundry_name function in code
-Remove wrong condition added for sundry code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191290 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a9d87b88
......@@ -1516,7 +1516,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
//if(!isSundry && ("D".equalsIgnoreCase(oPayMode) || "T".equalsIgnoreCase(oPayMode) || "P".equalsIgnoreCase(oPayMode) ))//Changed for NEFT & RTGS
if(!isSundry && ("D".equalsIgnoreCase(oPayMode) || "T".equalsIgnoreCase(oPayMode) || "P".equalsIgnoreCase(oPayMode)) || "G".equalsIgnoreCase(oPayMode) || "N".equalsIgnoreCase(oPayMode))
{
//oSundryCode = "";
oSundryCode = "";
}
if("Q".equalsIgnoreCase(oPayMode))
{
......@@ -1573,7 +1573,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
if("NULLFOUND".equalsIgnoreCase(chqPrint))
{
sql = "select DDF_GET_SUNDRY_NAME() from dual";
sql = "select DDF_GET_SUNDRY_NAME(?,?) from dual";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, oSundryCode);
pstmt.setString(2, oSundryType);
......@@ -1665,14 +1665,6 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
}
System.out.println("chqName----------["+ chqName +"]");
System.out.println("headerBuff--@@@@@@-["+headerBuff+"]");
Document tempdom = genericUtility.parseString(headerBuff.toString());
setNodeValue(tempdom, "sundry_code", mSundryCode);
String tempStr = genericUtility.serializeDom(tempdom);
headerBuff = null;
headerBuff = new StringBuffer(tempStr );
System.out.println("headerBuff--&&&&&-["+headerBuff+"]");
detailBuff.append("<tran_id>").append("<![CDATA[]]>").append("</tran_id>");
detailBuff.append("<acct_code__ap>").append("<![CDATA[" + mAcctCodeAp + "]]>").append("</acct_code__ap>");
......@@ -2803,7 +2795,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
//if(!isSundry && ("D".equalsIgnoreCase(oPayMode) || "T".equalsIgnoreCase(oPayMode) || "P".equalsIgnoreCase(oPayMode) ))//Changed for NEFT & RTGS
if(!isSundry && ("D".equalsIgnoreCase(oPayMode) || "T".equalsIgnoreCase(oPayMode) || "P".equalsIgnoreCase(oPayMode)) || "G".equalsIgnoreCase(oPayMode) || "N".equalsIgnoreCase(oPayMode))
{
//oSundryCode = "";
oSundryCode = "";
}
if("Q".equalsIgnoreCase(oPayMode))
{
......@@ -2860,7 +2852,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
if("NULLFOUND".equalsIgnoreCase(chqPrint))
{
sql = "select DDF_GET_SUNDRY_NAME() from dual";
sql = "select DDF_GET_SUNDRY_NAME(?,?) from dual";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, oSundryCode);
pstmt.setString(2, oSundryType);
......@@ -2949,17 +2941,6 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
{
chqName = "";
}
//IF HEADER HAS NO SUNDRY CODE THEN NEED TO BE APPEND.
System.out.println("headerBuff--@@@@@@-["+headerBuff+"]");
Document tempdom = genericUtility.parseString(headerBuff.toString());
setNodeValue(tempdom, "sundry_code", mSundryCode);
String tempStr = genericUtility.serializeDom(tempdom);
headerBuff = null;
headerBuff = new StringBuffer(tempStr );
System.out.println("headerBuff--&&&&&-["+headerBuff+"]");
detailBuff.append("<tran_id>").append("<![CDATA[]]>").append("</tran_id>");
detailBuff.append("<acct_code__ap>").append("<![CDATA[" + mAcctCodeAp + "]]>").append("</acct_code__ap>");
......
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