Commit 356b1f26 authored by dhirajchavan's avatar dhirajchavan

D15JSER001 ADDED TAG VERSION FOR CUST CREDIT BYPASS CHECK


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100392 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c0254511
...@@ -132,8 +132,10 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -132,8 +132,10 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
pstmt = conn.prepareStatement(Sql); pstmt = conn.prepareStatement(Sql);
pstmt.setString(1,siteCode); pstmt.setString(1,siteCode);
pstmt.setString(2,custcode); pstmt.setString(2,custcode);
pstmt.setString(3,eff_from); pstmt.setTimestamp(3,java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(eff_from,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())));
pstmt.setString(4,valid_upto); //pstmt.setString(3,eff_from);
// pstmt.setString(4,valid_upto);
pstmt.setTimestamp(4,java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(valid_upto,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())));
// pstmt.setString(5,reasCode); // pstmt.setString(5,reasCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
System.out.println("Sql@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@by dhiraj@@@@@@@@" + Sql); System.out.println("Sql@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@by dhiraj@@@@@@@@" + Sql);
...@@ -246,9 +248,12 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo ...@@ -246,9 +248,12 @@ public class CustCreditByPass extends ValidatorEJB implements CustCreditByPassLo
} }
else if(eff_from !=null || eff_from.trim().length() > 0) else if(eff_from !=null || eff_from.trim().length() > 0)
{ {
System.out.println("eff_from"+eff_from);
System.out.println("valid_upto"+valid_upto);
effDate = Timestamp.valueOf(genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); effDate = Timestamp.valueOf(genericUtility.getValidDateString(eff_from, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
validDate = Timestamp.valueOf(genericUtility.getValidDateString(valid_upto, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); validDate = Timestamp.valueOf(genericUtility.getValidDateString(valid_upto, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("effDate"+effDate);
System.out.println("effDate"+validDate);
if(validDate != null && validDate.before(effDate)) if(validDate != null && validDate.before(effDate))
{ {
System.out.println("In COndition"); System.out.println("In COndition");
......
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