parent
5db2eb1eae
commit
7a46658a1a
2 changed files with 9 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ import org.libreplan.business.users.entities.User;
|
|||
*
|
||||
* @author Jacobo Aragunde Perez <jaragunde@igalia.com>
|
||||
*/
|
||||
public class ExternalCompany extends BaseEntity implements IHumanIdentifiable{
|
||||
public class ExternalCompany extends BaseEntity implements IHumanIdentifiable,
|
||||
Comparable<ExternalCompany> {
|
||||
|
||||
private String name;
|
||||
|
||||
|
|
@ -195,4 +196,9 @@ public class ExternalCompany extends BaseEntity implements IHumanIdentifiable{
|
|||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(ExternalCompany company) {
|
||||
return this.getName().compareToIgnoreCase(company.getName());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -26,6 +26,7 @@ import static org.libreplan.web.I18nHelper._;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
|
@ -659,6 +660,7 @@ public class OrderModel extends IntegrationEntityModel implements IOrderModel {
|
|||
private void loadExternalCompaniesAreClient() {
|
||||
this.externalCompanies = externalCompanyDAO
|
||||
.getExternalCompaniesAreClient();
|
||||
Collections.sort(this.externalCompanies);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue