Commit fcbdf8b1 authored by kshinde's avatar kshinde
parent e29b6184
package ibase.webitm.ejb.fin.adv; package ibase.webitm.ejb.fin;
import ibase.system.config.AppConnectParm; import ibase.system.config.AppConnectParm;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
...@@ -256,7 +256,7 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L ...@@ -256,7 +256,7 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if (rs1.next()) 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")) if(genCodeVal.equalsIgnoreCase("N"))
{ {
...@@ -897,20 +897,22 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L ...@@ -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 = ?"; String sql1="update lc_voucher set status = 'L',status_date = ? where tran_id = ?";
pstmt1=conn.prepareStatement(sql1); pstmt1=conn.prepareStatement(sql1);
pstmt1.setTimestamp(1, today); 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(); updcnt=pstmt1.executeUpdate();
pstmt.close(); pstmt1.close();
pstmt=null; pstmt1=null;
} }
else else
{ {
String sql1="update lc_voucher set status = 'O',status_date = ? where tran_id = ?"; String sql1="update lc_voucher set status = 'O',status_date = ? where tran_id = ?";
pstmt1=conn.prepareStatement(sql1); pstmt1=conn.prepareStatement(sql1);
pstmt1.setTimestamp(1, today); 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(); updcnt=pstmt1.executeUpdate();
pstmt.close(); pstmt1.close();
pstmt=null; pstmt1=null;
} }
if(updcnt==0) if(updcnt==0)
...@@ -922,12 +924,15 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L ...@@ -922,12 +924,15 @@ public class LcVouchConf extends ActionHandlerEJB implements LcVouchConfLocal, L
if(errCode!=null || errCode.trim().length()==0) if(errCode!=null || errCode.trim().length()==0)
{
if(!NoacctEffect)
{ {
errString=Fcommon.checkGlTranDrCr("LCVOUH", tranId, conn); errString=Fcommon.checkGlTranDrCr("LCVOUH", tranId, conn);
if(errString!=null && errString.trim().length()>0) if(errString!=null && errString.trim().length()>0)
{ {
return errString; 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