Commit bea8f0bb authored by smanohar's avatar smanohar

Calling of confirmation (new component) in case of auto confirm flag is configured in finparm

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@210925 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 214062d6
...@@ -16,6 +16,7 @@ import javax.naming.InitialContext; ...@@ -16,6 +16,7 @@ import javax.naming.InitialContext;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.utility.UserInfoBean; import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.fin.FinCommon; import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.fin.adv.VoucherConf;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.sys.UtilMethods; import ibase.webitm.ejb.sys.UtilMethods;
...@@ -2155,6 +2156,13 @@ public class CreatePoRcpVoucher ...@@ -2155,6 +2156,13 @@ public class CreatePoRcpVoucher
pstmtUpd.close(); pstmtUpd.close();
pstmtUpd=null; pstmtUpd=null;
} }
// 30-oct-2019 manoharan call voucher confirmation based on variable
if ("Y".equals(autoConfirm))
{
VoucherConf voucherConf = new VoucherConf();
retString = voucherConf.confirm( tranIdVoucher, xtraParams, "N", conn);
voucherConf = null;
}
} }
else else
{ {
...@@ -2433,6 +2441,10 @@ public class CreatePoRcpVoucher ...@@ -2433,6 +2441,10 @@ public class CreatePoRcpVoucher
}//try }//try
catch(Exception exception) catch(Exception exception)
{ {
try {
conn.rollback();
} catch (Exception e1) {
}
exception.printStackTrace(); exception.printStackTrace();
throw new ITMException(exception); throw new ITMException(exception);
} }
......
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