Commit e9054d43 authored by vkadam's avatar vkadam

If the status='X' can not confirmed the transaction.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98129 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e1f337de
......@@ -127,6 +127,33 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
returnString = itmDBAccessEJB.getErrorString("",errStr,userId);
return returnString;
}
/**
* VALLABH KADAM 22/JUN/15
* While verification
* If the Transaction is already 'CANCEL'
* that is STATUS='X'
* The Confirmed is not allow [VTCNCLCNFL]
* Req Id :- [D15BSUN003]
* */
sql = " select count(*) from charge_back where tran_id = ? and status = 'X'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranID.trim());
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}if(rs != null)
rs.close();
rs = null;
if(pstmt != null)
pstmt.close();
pstmt=null;
if(cnt > 0)
{
errStr = "VTCNCLCNFL";
returnString = itmDBAccessEJB.getErrorString("",errStr,userId);
return returnString;
}
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
......
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