[Bug #1288] Fix message regarding progress type precision

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-12-28 08:35:18 +01:00
parent 59759b2af5
commit 80aa4caea2

View file

@ -1279,8 +1279,10 @@ public class ManageOrderElementAdvancesController extends
return _("Value is not valid, the current value must be less than max value");
}
if (!manageOrderElementAdvancesModel.isPrecisionValid(measurement)) {
return _("Value is not valid, the Precision value must be exact "
+ manageOrderElementAdvancesModel.getUnitPrecision());
return _(
"Value must be a multiple of the precission value of the progress type: {0}",
manageOrderElementAdvancesModel.getUnitPrecision()
.stripTrailingZeros().toPlainString());
}
if (manageOrderElementAdvancesModel.lessThanPreviousMeasurements()) {
return _("Value is not valid, the value must be greater than the value of the previous progress.");