/*
 * This file is part of LibrePlan
 *
 * Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
 *                         Desenvolvemento Tecnolóxico de Galicia
 * Copyright (C) 2010-2011 Igalia, S.L.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.libreplan.business.orders.entities;

import static org.libreplan.business.i18n.I18nHelper._;


/**
 * @author Susana Montes Pedreiera <smotnes@wirelessgalicia.com>
 */

public enum OrderStatusEnum {

    OFFERED(_("OFFERED")), ACCEPTED(_("ACCEPTED")), STARTED(_("STARTED")), FINISHED(
            _("FINISHED")), CANCELLED(_("CANCELLED")), SUBCONTRACTED_PENDING_ORDER(
            _("SUBCONTRACTED PENDING PROJECT")), STORED(_("STORED"));

    private String description;

    private OrderStatusEnum(String description) {
        this.description = description;
    }

    public String toString() {
        return this.description;
    }

    public static OrderStatusEnum getDefault() {
        return OFFERED;
    }
}

@@ -201,17 +201,17 @@
 2010-201
-1
+2
  Igalia,
@@ -1073,68 +1073,221 @@
 %3E%0A *
-/%0A%0Apublic enum OrderStatusEnum %7B%0A%0A    OFFERED(_(%22OFFERED%22)),
+ @author Manuel Rego Casasnovas %3Crego@igalia.com%3E%0A */%0Apublic enum OrderStatusEnum %7B%0A%0A    PRE_SALES(_(%22PRE-SALES%22)),%0A    OFFERED(_(%22OFFERED%22)),%0A    SUBCONTRACTED_PENDING_ORDER(_(%22SUBCONTRACTED PENDING ORDER%22)),%0A   
  ACC
@@ -1307,16 +1307,20 @@
 PTED%22)),
+%0A   
  STARTED
@@ -1338,31 +1338,49 @@
 %22)),
- FINISHED(%0A            
+%0A    ON_HOLD(_(%22ON HOLD%22)),%0A    FINISHED(
 _(%22F
@@ -1390,16 +1390,20 @@
 SHED%22)),
+%0A   
  CANCELL
@@ -1425,86 +1425,12 @@
 %22)),
- SUBCONTRACTED_PENDING_ORDER(%0A            _(%22SUBCONTRACTED PENDING PROJECT%22)),
+%0A   
  STO

Add new status in OrderStatusEnum: PRE-SALES and ON HOLD