Commit 395e05a3 authored by asikarwar's avatar asikarwar

change in rcp_mode and solve space problem with edit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91680 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f956842f
......@@ -183,9 +183,9 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
tranType=this.genericUtility.getColumnValue("tran_type", dom);
if (tranType != null && tranType.trim().length() > 0)
{
if(!tranType.equals("L"))
if(!tranType.trim().equals("L"))
{
if(!tranType.equals("U"))
if(!tranType.trim().equals("U"))
{
errCode = "VTRECTYPE";
errList.add(errCode);
......@@ -462,8 +462,10 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
effDate = dateFormat2.parse(this.genericUtility.getColumnValue("eff_date", dom));
tranType = this.genericUtility.getColumnValue("tran_type", dom);
rcpMode = this.genericUtility.getColumnValue("rcp_mode", dom);
effDate = dateFormat2.parse(this.genericUtility.getColumnValue("eff_date", dom));
if(tranType != null && tranType.trim().length() != 0)
{
if (tranType.equals("L"))
......@@ -1997,6 +1999,7 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>");
childNodeListLength = childNodeList.getLength();
System.out.println("first receipt mode ------>"+genericUtility.getColumnValue("rcp_mode", dom));
do
{
childNode = childNodeList.item(ctr);
......@@ -2013,7 +2016,7 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
tranType = genericUtility.getColumnValue("tran_type", dom);
valueXmlString.append("<tran_type>").append("<![CDATA[" + tranType + "]]>").append("</tran_type>");
valueXmlString.append("<tran_type>").append("<![CDATA["+tranType.trim()+"]]>").append("</tran_type>");
BankCode = genericUtility.getColumnValue("bank_code", dom);
sql = "select case when instr_per_slip is null then 0 else instr_per_slip end from bank where bank_code = ?";
pstmt = conn.prepareStatement(sql);
......@@ -2300,7 +2303,6 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
valueXmlString.append("<acct_code__ar>").append("<![CDATA[" + acctCodeAr + "]]>").append("</acct_code__ar>");
valueXmlString.append("<cctr_code__ar>").append("<![CDATA[" + cctrCodeAr + "]]>").append("</cctr_code__ar>");
valueXmlString.append("<curr_code>").append("<![CDATA[" + currCode + "]]>").append("</curr_code>");
valueXmlString.append("<rcp_mode>").append("<![CDATA[" + rcpMode + "]]>").append("</rcp_mode>");
valueXmlString.append("<cust_bank_ref>").append("<![CDATA[" + bankName + "]]>").append("</cust_bank_ref>");
valueXmlString.append("<acct_code__adv>").append("<![CDATA[" + acctCodeAdv + "]]>").append("</acct_code__adv>");
valueXmlString.append("<cctr_code__adv>").append("<![CDATA[" + cctrCodeAdv + "]]>").append("</cctr_code__adv>");
......
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