Commit cb4c5bf9 authored by kshinde's avatar kshinde

Bug fix


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180960 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 74f3ec49
...@@ -125,7 +125,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V ...@@ -125,7 +125,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V
System.out.println("conf["+conf+"] paymode["+payMode+"] refNo ["+refNo+"] refCount["+refCount+"]"); System.out.println("conf["+conf+"] paymode["+payMode+"] refNo ["+refNo+"] refCount["+refCount+"]");
//validation if not confirmed //validation if not confirmed
if(!conf.equalsIgnoreCase("Y")) if(!"Y".equalsIgnoreCase(conf))
{ {
errCode="VTELMNCNF2"; errCode="VTELMNCNF2";
errString = itmDBAccessEJB.getErrorString("", errCode, ""); errString = itmDBAccessEJB.getErrorString("", errCode, "");
...@@ -139,7 +139,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V ...@@ -139,7 +139,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V
return errString; return errString;
} }
//validation if paymode is not Cash //validation if paymode is not Cash
else if(!payMode.equalsIgnoreCase("C")) else if(!"C".equalsIgnoreCase(payMode))
{ {
errCode="VTINMODE"; errCode="VTINMODE";
errString = itmDBAccessEJB.getErrorString("", errCode, ""); errString = itmDBAccessEJB.getErrorString("", errCode, "");
...@@ -151,7 +151,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V ...@@ -151,7 +151,7 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V
termID = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"); termID = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId");
tranType = finCommon.getFinparams("999999","TRAN_TYPE_AUTO_PAY",conn); tranType = finCommon.getFinparams("999999","TRAN_TYPE_AUTO_PAY",conn);
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
if(tranType.equalsIgnoreCase("NULLFOUND")) if("NULLFOUND".equalsIgnoreCase(tranType))
tranType = "O"; tranType = "O";
...@@ -305,15 +305,15 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V ...@@ -305,15 +305,15 @@ public class VouchPayAct extends ActionHandlerEJB implements VouchPayActLocal, V
rs.close(); rs.close();
if(startFrom.equalsIgnoreCase("R")) if("R".equalsIgnoreCase(startFrom))
{ {
ldStartDate=refDate; ldStartDate=refDate;
} }
else if(startFrom.equalsIgnoreCase("D") || startFrom.equalsIgnoreCase("Q")) else if("D".equalsIgnoreCase(startFrom) || "Q".equalsIgnoreCase(startFrom))
{ {
ldStartDate=effDate; ldStartDate=effDate;
} }
else if(startFrom.equalsIgnoreCase("B")) else if("B".equalsIgnoreCase(startFrom))
{ {
ldStartDate=billDate; ldStartDate=billDate;
} }
......
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