Commit fcbdf8b1 authored by kshinde's avatar kshinde

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185975 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e29b6184
package ibase.webitm.ejb.fin.adv;
package ibase.webitm.ejb.fin;
import ibase.system.config.AppConnectParm;
import ibase.system.config.ConnDriver;
......@@ -256,7 +256,7 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
genCodeVal=rs.getString(1); ////gencode val if Y then boolean true
genCodeVal=rs1.getString("UDF_STR1"); ////gencode val if Y then boolean true
}
if(genCodeVal.equalsIgnoreCase("N"))
{
......@@ -897,20 +897,22 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L
String sql1="update lc_voucher set status = 'L',status_date = ? where tran_id = ?";
pstmt1=conn.prepareStatement(sql1);
pstmt1.setTimestamp(1, today);
pstmt1.setString(2, glTraceUpd.get("ref_id").toString());
//pstmt1.setString(2, glTraceUpd.get("ref_id").toString());
pstmt1.setString(2, tranId);
updcnt=pstmt1.executeUpdate();
pstmt.close();
pstmt=null;
pstmt1.close();
pstmt1=null;
}
else
{
String sql1="update lc_voucher set status = 'O',status_date = ? where tran_id = ?";
pstmt1=conn.prepareStatement(sql1);
pstmt1.setTimestamp(1, today);
pstmt1.setString(2, glTraceUpd.get("ref_id").toString());
//pstmt1.setString(2, glTraceUpd.get("ref_id").toString());
pstmt1.setString(2, tranId);
updcnt=pstmt1.executeUpdate();
pstmt.close();
pstmt=null;
pstmt1.close();
pstmt1=null;
}
if(updcnt==0)
......@@ -922,12 +924,15 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L
if(errCode!=null || errCode.trim().length()==0)
{
if(!NoacctEffect)
{
errString=Fcommon.checkGlTranDrCr("LCVOUH", tranId, conn);
if(errString!=null && errString.trim().length()>0)
{
return errString;
}
}
}
......
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