Commit 7c2096af authored by wansari's avatar wansari

W16IBAS007 added validation that indent date should not be less then current date.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105500 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 28415a92
...@@ -182,10 +182,12 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -182,10 +182,12 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
else if(mdate1.length() > 0) else if(mdate1.length() > 0)
{ {
Date ind_date = sdf.parse(mdate1); Date ind_date = sdf.parse(mdate1);
count = currDate.compareTo(ind_date); //Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [START]
//count = currDate.compareTo(ind_date);
if(count > 1 && "A".equalsIgnoreCase(editFlag)) //if(count > 1 && "A".equalsIgnoreCase(editFlag))
if(ind_date.before(currDate) && "A".equalsIgnoreCase(editFlag))
{ {
//Changed by wasim on 03-05-2017 for indent date validation as if selected previous date from current date [END]
errCode = "VTLESSDATE"; errCode = "VTLESSDATE";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
......
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