Commit 27d369d3 authored by prane's avatar prane

Auto IBCA should be created and confirm from misc_voucher

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172074 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4f34ddb7
...@@ -19,6 +19,7 @@ import javax.ejb.Stateless; ...@@ -19,6 +19,7 @@ import javax.ejb.Stateless;
import ibase.webitm.ejb.fin.FinCommon; import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.fin.adv.JvConfirm; import ibase.webitm.ejb.fin.adv.JvConfirm;
import ibase.webitm.ejb.fin.adv.PayIbcaConf;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
...@@ -1231,7 +1232,9 @@ conn = getConnection(); ...@@ -1231,7 +1232,9 @@ conn = getConnection();
java.util.Date toDay = new java.util.Date(); java.util.Date toDay = new java.util.Date();
java.sql.Timestamp tDay = null; java.sql.Timestamp tDay = null;
SimpleDateFormat sdf = null; SimpleDateFormat sdf = null;
//autoConf Added by Pavan R on 18/OCT/17
String autoConf = "";
try try
{ {
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
...@@ -1735,7 +1738,7 @@ conn = getConnection(); ...@@ -1735,7 +1738,7 @@ conn = getConnection();
pstmt.close(); pstmt.close();
pstmt= null; pstmt= null;
sql =" select link_type, acct_code__pay, cctr_code__pay, acct_code__rcp, cctr_code__rcp " sql =" select link_type, acct_code__pay, cctr_code__pay, acct_code__rcp, cctr_code__rcp, auto_confirm"
+" from ibca_pay_ctrl where site_code__from = ? and site_code__to = ? "; +" from ibca_pay_ctrl where site_code__from = ? and site_code__to = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode); pstmt.setString(1,siteCode);
...@@ -1748,6 +1751,8 @@ conn = getConnection(); ...@@ -1748,6 +1751,8 @@ conn = getConnection();
cctrFr = rs.getString("cctr_code__pay"); cctrFr = rs.getString("cctr_code__pay");
acctTo = rs.getString("acct_code__rcp"); acctTo = rs.getString("acct_code__rcp");
cctrTo = rs.getString("cctr_code__rcp"); cctrTo = rs.getString("cctr_code__rcp");
//added by Pavan R on 18/OCT/17 to generate auto-generated ibca on confim of misc voucher
autoConf = rs.getString("auto_confirm");
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -1917,6 +1922,21 @@ conn = getConnection(); ...@@ -1917,6 +1922,21 @@ conn = getConnection();
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
// Added by Pavan R on 18/OCT/17 Start
System.out.println("###auto_Confirm::["+autoConf+"]");
if (autoConf != null && "Y".equalsIgnoreCase(autoConf))
{
PayIbcaConf payIbcaConf = new PayIbcaConf();
errString = payIbcaConf.confirm(ibcaId, xtraParams, "", conn);
if(errString != null && errString.indexOf("VTCICONF3") != -1)
{
//System.out.println("errString.indexOf::["+errString.indexOf("VTCICONF3")+"]");
errString = "";
}
}
//Pavan R on 18/OCT/17 End
} //gs_run_mode } //gs_run_mode
sql =" select site_code__for from misc_voucher where tran_id = ? "; sql =" select site_code__for from misc_voucher where tran_id = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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