Commit 78550dda authored by vkadam's avatar vkadam

If transaction is already 'CANCEL' that is STATUS='X' the system not allow to verify. [D15BSUN003]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98124 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 143afb80
......@@ -123,6 +123,33 @@ public class ChargeBackFormVerify extends ActionHandlerEJB implements ChargeBack
errString = itmDBAccessEJB.getErrorString("","VTVARALR ","","",conn);
return errString;
}
/**
* VALLABH KADAM 18/JUN/15
* While verification
* If the Transaction is already 'CANCEL'
* that is STATUS='X'
* The verification is not allow [VTCANCLALR]
* Req Id :- [D15BSUN003]
* */
sql = " select count(*) from charge_back_form where tran_id = ? and status = 'X'";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, tranId.trim());
rs = pStmt.executeQuery();
if(rs.next())
{
cnf = rs.getInt(1);
}if(rs != null)
rs.close();
rs = null;
if(pStmt != null)
pStmt.close();
pStmt=null;
if(cnf > 0)
{
System.out.println("The Transaction is already Cancel @@@@");
errString = itmDBAccessEJB.getErrorString("","VTCANCLALR","","",conn);
return errString;
}
//delete older error code and error messages from charge_back_form and charge_back_form_det added by sagar on 12/06/14 start..
System.out.println(">>>>>>>>>>>delete older entries from charge_back_form table");
......
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