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 ...@@ -49,7 +49,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
} }
System.out.println("Returning from getDate :: " + retString); //System.out.println("Returning from getDate :: " + retString);
return retString; return retString;
} }
...@@ -284,11 +284,12 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -284,11 +284,12 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
return xmlRetString; 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. 2. The receivable is adjusted and a new record is inserted in to payables.
3. Record in inserted into receivables_adj 3. Record in inserted into receivables_adj
********************************************************************************************/ *********************************************************************************/
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("******* Inside RecPayXfrPrc process **********"); System.out.println("******* Inside RecPayXfrPrc process **********");
...@@ -320,7 +321,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -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 public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("******************* PAVAN RANE *******************"); System.out.println("******************* PAVAN RANE *******************");
System.out.println("----------- Inside RecPayXfrPrc getData -----------"); System.out.println("----------- Inside RecPayXfrPrc process -----------");
String errString = ""; String errString = "";
String refSer = ""; String refSer = "";
String refNo = ""; String refNo = "";
...@@ -422,7 +423,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -422,7 +423,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
bankCode = checkNull(genericUtility.getColumnValueFromNode("bank_code", parentNode)); bankCode = checkNull(genericUtility.getColumnValueFromNode("bank_code", parentNode));
sundryType = "C"; sundryType = "C";
status = "U"; 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){ if(sDueDate != null && sDueDate.trim().length() > 0){
dueDate = Timestamp.valueOf(genericUtility.getValidDateString(sDueDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.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 ...@@ -500,7 +501,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
pstmt3.clearBatch(); pstmt3.clearBatch();
System.out.println("---rowsInserted----["+rowsInserted1.length+"]["+rowsInserted2.length+"]"); 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); errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null) if(conn != null)
...@@ -527,7 +528,6 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -527,7 +528,6 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
} }
catch (Exception e) catch (Exception e)
{ {
//isError = true;
e.printStackTrace(); e.printStackTrace();
System.out.println("Exception in process ::"+ e.getMessage()); System.out.println("Exception in process ::"+ e.getMessage());
try try
...@@ -576,6 +576,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -576,6 +576,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
} }
return errString; return errString;
} }
public String generateTranId( String windowName,String tranSer,String siteCode, Connection conn )throws ITMException public String generateTranId( String windowName,String tranSer,String siteCode, Connection conn )throws ITMException
{ {
PreparedStatement pstmt = null; 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