Commit a20a0c65 authored by smane's avatar smane

FreightListIC.java file updated by sagar changes made in getGenCodeDescr method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94401 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67dce9bb
...@@ -311,18 +311,21 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F ...@@ -311,18 +311,21 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
} }
else else
{ {
effFromDate = Timestamp.valueOf(genericUtility.getValidDateString(effFrom, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); if(effFrom!=null && effFrom.trim().length()>0)
validUptoDate = Timestamp.valueOf(genericUtility.getValidDateString(validUpto, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("comapring effFrom>>>>>>>>"+effFromDate);
System.out.println("comapring validUpto>>>>>>>>"+validUptoDate);
if(validUptoDate.before(effFromDate))
{ {
//Valid Upto Date should not be less than Effective From Date. effFromDate = Timestamp.valueOf(genericUtility.getValidDateString(effFrom, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println(">>>>Valid upto date is less than Eff From date:"); validUptoDate = Timestamp.valueOf(genericUtility.getValidDateString(validUpto, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
errCode = "VMVLDFRMTO"; System.out.println("comapring effFrom>>>>>>>>"+effFromDate);
errList.add(errCode); System.out.println("comapring validUpto>>>>>>>>"+validUptoDate);
errFields.add(childNodeName.toLowerCase()); if(validUptoDate.before(effFromDate))
} {
//Valid Upto Date should not be less than Effective From Date.
System.out.println(">>>>Valid upto date is less than Eff From date:");
errCode = "VMVLDFRMTO";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
} }
} }
}// end for }// end for
......
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