publicStringconfirm(StringtranId,StringxtraParams,StringforcedFlag)throwsRemoteException,ITMException//added by Ramagya On 10/08/2020[added userInfo parameter]
publicStringconfirm(StringtranId,StringxtraParams,StringforcedFlag,StringuserInfo)throwsRemoteException,ITMException//added by Ramagya On 10/08/2020[added userInfo parameter]
//return itmDBAccessEJB.getErrorString("","VTALCONF","","",conn);//commented by bipin on 22/03/2010
retString=itmDBAccessEJB.getErrorString("","VTALCONF","","",conn);//added by bipin on 22/03/2010 [reason: To allow error & warning]
if(commonFunctions.errorType(conn,retString,errStringXml,emploginCode).equalsIgnoreCase("E"))//added by bipin on 22/03/2010 [reason: To allow error & warning]
if(commonFunctions.errorType(conn,retString,errStringXml,emploginCode).equalsIgnoreCase("E"))//added by bipin on 22/03/2010 [reason: To allow error & warning]
returnretString;
}
else//added by bipin on 11/03/2010
{
//start - bipin on 11/03/2010 [reason:Transaction should be confirmed if voucher created or not created ]
//String empCode = e12GenericUtilityObj.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");//Changed By Vikas L on 29-05-19
// if(userInfoBean != null)//Modified by Ahmed on 14/09/2020 [Condition added to check if class level variable userInfoBean is null then not to reset the userInfo string]
// {
// userInfo= userInfoBean;//added By Ramagya On 10/08/2020[assign global variable userInfoBean value to resolve issue userinfo getting null ]
//start - bipin on 17/02/2010 [reason: While creating misc voucher, length of remarks should be 60 char, beacause datatype of remarks column in misc_vouchdet table is 'varchar2(60)' and datatype of remarks column in cash_voucher_det table is 'varchar2(120)' ]
//String sql2 = "SELECT TO_CHAR(TO_DATE('"+rs1.getDate("bill_date").toString()+"','yyyy/mm/dd'),'dd/mm/yy') FROM CASH_VOUCHER_DET WHERE TRAN_ID='"+tranID+"' and LINE_NO='"+lineNoList.get(lineCount)+"'";//Haneesh 02/11/09 commented
String sql2 = "SELECT TO_CHAR(TO_DATE('"+rs1.getDate("bill_date").toString()+"','yyyy/mm/dd'),'dd/mm/yy') FROM CASH_VOUCHER_DET WHERE TRAN_ID='"+tranID+"' and LINE_NO='"+rs.getString("LINE_NO")+"'";//Haneesh 02/11/09 added
System.out.println("sql2 "+sql2);
stmt2=conn.createStatement();
rs2 = stmt2.executeQuery(sql2);
if(rs2.next())
{
detMapChild.put("bill_date",rs2.getString(1));
}
}
catch (Exception e)
{
System.out.println("Exception to get bill date : "+e.getMessage());