[Bug #811] Translate pending messages including string 'nif/NIF'

FEA: ItEr68S04BugFixing
This commit is contained in:
Diego Pino Garcia 2011-01-18 11:38:14 +01:00
parent 1a8d6534c9
commit db8ce5099d
4 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ public class Worker extends Resource implements Comparable {
return !isVirtual();
}
@AssertTrue(message = "Worker with the same nif previously existed")
@AssertTrue(message = "Worker ID already used. It has to be be unique")
public boolean checkConstraintUniqueNif() {
if (!areFirstNameSurnameNifSpecified()) {
return true;

View file

@ -97,7 +97,7 @@ public class ReportAdvancesServiceREST implements IReportAdvancesService {
if (StringUtils
.isEmpty(orderElementWithAdvanceMeasurementsListDTO.externalCompanyNif)) {
return getErrorMessage("", "external company nif not specified");
return getErrorMessage("", "external company ID not specified");
}
ExternalCompany externalCompany;

View file

@ -133,7 +133,7 @@ public class SubcontractServiceREST implements ISubcontractService {
if (StringUtils.isEmpty(subcontractedTask.externalCompanyNif)) {
throw new ViolationError(subcontractedTask.subcontractedCode,
"external company nif not specified");
"external company ID not specified");
}
final ExternalCompany externalCompany = adHocTransactionService

View file

@ -193,7 +193,7 @@ public class ResourceServiceTest {
saveResource(w1);
/*
* Create a worker DTO with the same first name, surname, and nif as
* Create a worker DTO with the same first name, surname, and ID as
* the previous one.
*/
WorkerDTO w2 = new WorkerDTO(w1.getFirstName(), w1.getSurname(),