Commit f2fc2c14 authored by prane's avatar prane

done changes

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184375 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d6d98f9e
......@@ -49,7 +49,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
e.printStackTrace();
throw new ITMException(e);
}
System.out.println("Returning from getDate :: " + retString);
//System.out.println("Returning from getDate :: " + retString);
return retString;
}
......@@ -284,11 +284,12 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
return xmlRetString;
}
/********************************************************************************************
1. Function for transferring the negative receivables to payables.
/********************************************************************************
1. Function for transferring the positive receivables to negative payables
and negative receivables to positive payables.
2. The receivable is adjusted and a new record is inserted in to payables.
3. Record in inserted into receivables_adj
********************************************************************************************/
*********************************************************************************/
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
System.out.println("******* Inside RecPayXfrPrc process **********");
......@@ -320,7 +321,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{
System.out.println("******************* PAVAN RANE *******************");
System.out.println("----------- Inside RecPayXfrPrc getData -----------");
System.out.println("----------- Inside RecPayXfrPrc process -----------");
String errString = "";
String refSer = "";
String refNo = "";
......@@ -422,7 +423,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
bankCode = checkNull(genericUtility.getColumnValueFromNode("bank_code", parentNode));
sundryType = "C";
status = "U";
System.out.println("[1]"+tranIdRec+"[2]"+sRefDate+"[3]"+currCode+"[4]"+sExchRate+"[5]"+custCode+"[6]"+acctCode+"[7]"+cctrCode+"[8]"+sDueDate+"[9]"+finEnt);
System.out.println("Details from receivables[1]"+tranIdRec+"[2]"+sRefDate+"[3]"+currCode+"[4]"+sExchRate+"[5]"+custCode+"[6]"+acctCode+"[7]"+cctrCode+"[8]"+sDueDate+"[9]"+finEnt);
if(sDueDate != null && sDueDate.trim().length() > 0){
dueDate = Timestamp.valueOf(genericUtility.getValidDateString(sDueDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
......@@ -500,7 +501,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
pstmt3.clearBatch();
System.out.println("---rowsInserted----["+rowsInserted1.length+"]["+rowsInserted2.length+"]");
if(rowsInserted1.length > 0 && rowsInserted1.length > 0)
if(rowsInserted1.length > 0 && rowsInserted2.length > 0)
{
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null)
......@@ -527,7 +528,6 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
}
catch (Exception e)
{
//isError = true;
e.printStackTrace();
System.out.println("Exception in process ::"+ e.getMessage());
try
......@@ -576,6 +576,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
}
return errString;
}
public String generateTranId( String windowName,String tranSer,String siteCode, Connection conn )throws ITMException
{
PreparedStatement pstmt = null;
......
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