[Bug #811] Translate pending messages including string 'nif/NIF'
FEA: ItEr68S04BugFixing
This commit is contained in:
parent
1a8d6534c9
commit
db8ce5099d
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue