ItEr49S04ValidacionEProbasFuncionaisItEr48S04: [Bug #358] Predefined advance types not translated on database.

This commit is contained in:
Manuel Rego Casasnovas 2010-03-04 16:22:37 +01:00 committed by Javier Moran Rua
parent 40e42873ae
commit 4556532410

View file

@ -20,8 +20,6 @@
package org.navalplanner.business.advance.bootstrap;
import static org.navalplanner.business.i18n.I18nHelper._;
import java.math.BigDecimal;
import org.navalplanner.business.advance.entities.AdvanceType;
@ -29,15 +27,15 @@ import org.navalplanner.business.common.Registry;
public enum PredefinedAdvancedTypes {
CHILDREN(_("children"), new BigDecimal(100), new BigDecimal(0.01), true,
CHILDREN("children", new BigDecimal(100), new BigDecimal(0.01), true,
false),
PERCENTAGE(_("percentage"), new BigDecimal(100),
new BigDecimal(0.01), true, false),
UNITS(_("units"),
new BigDecimal(Integer.MAX_VALUE), new BigDecimal(1), false, false),
SUBCONTRACTOR(
_("subcontractor"), new BigDecimal(100), new BigDecimal(0.01),
true, false);
PERCENTAGE(
"percentage", new BigDecimal(100), new BigDecimal(0.01), true,
false),
UNITS("units", new BigDecimal(Integer.MAX_VALUE),
new BigDecimal(1), false, false),
SUBCONTRACTOR("subcontractor",
new BigDecimal(100), new BigDecimal(0.01), true, false);
private PredefinedAdvancedTypes(String name, BigDecimal defaultMaxValue,
BigDecimal precision, boolean percentage, boolean qualityForm) {