[Bug #674] Sorted the tasks by start date before showing them in the company screen.
FEA: ItEr61S05BugFixing
This commit is contained in:
parent
957f378bc1
commit
1dd02b4149
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ import java.math.BigDecimal;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
|
|
@ -723,6 +724,12 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
|
|||
ordersToShow.add(order);
|
||||
}
|
||||
}
|
||||
Collections.sort(result,new Comparator<TaskElement>(){
|
||||
@Override
|
||||
public int compare(TaskElement arg0, TaskElement arg1) {
|
||||
return arg0.getStartDate().compareTo(arg1.getStartDate());
|
||||
}
|
||||
});
|
||||
setDefaultFilterValues(ordersToShow);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue