Commit f3c5a50e by chenith Committed by Harsh Shah

Update job to get close date

parent 4ce838cd
......@@ -158,9 +158,9 @@ public class Job extends BaseJob
{
int dateDiff = 0;
if(this.getJobStatus()==JobStatus.OPEN && this.getApplyBy()!=null)
if(getJobStatus()==JobStatus.OPEN && getApplyBy()!=null)
{
dateDiff = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), this.getApplyBy());
dateDiff = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), getApplyBy());
}
return dateDiff>0 ? dateDiff : 0;
......@@ -173,7 +173,7 @@ public class Job extends BaseJob
if(getApplyBy()!=null)
{
int dateDiff = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), getApplyBy());
int dateDiff = getNoOfDaystoClosed();
sb.append(dateDiff);
......@@ -194,7 +194,7 @@ public class Job extends BaseJob
{
StringBuilder sb = new StringBuilder("Closing in ");
if(this.getApplyBy()!=null)
if(getApplyBy()!=null)
{
int dateDiff = getNoOfDaystoClosed();
......@@ -217,9 +217,8 @@ public class Job extends BaseJob
{
StringBuilder sb = new StringBuilder("THIS JOB IS ");
sb.append(this.getJobStatus().getDescription());
sb.append(getJobStatus().getDescription());
return sb.toString();
}
}
\ No newline at end of file
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