parent
5f3ddcb576
commit
ecece6fd03
3 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ public class CostCategory extends IntegrationEntity {
|
|||
}
|
||||
}
|
||||
|
||||
public static void checkOverlapping(
|
||||
public static void validateCostCategoryOverlapping(
|
||||
List<ResourcesCostCategoryAssignment> costCategoryAssignments) {
|
||||
|
||||
for (int i = 0; i < costCategoryAssignments.size(); i++) {
|
||||
|
|
|
|||
|
|
@ -1095,7 +1095,7 @@ public abstract class Resource extends IntegrationEntity {
|
|||
assignmentsList.addAll(getResourcesCostCategoryAssignments());
|
||||
|
||||
try {
|
||||
CostCategory.checkOverlapping(assignmentsList);
|
||||
CostCategory.validateCostCategoryOverlapping(assignmentsList);
|
||||
} catch (ValidationException e) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ public class ResourcesCostCategoryAssignmentController extends GenericForwardCom
|
|||
List<ResourcesCostCategoryAssignment> costCategoryAssignments = resourcesCostCategoryAssignmentModel
|
||||
.getCostCategoryAssignments();
|
||||
try {
|
||||
CostCategory.checkOverlapping(costCategoryAssignments);
|
||||
CostCategory.validateCostCategoryOverlapping(costCategoryAssignments);
|
||||
} catch (ValidationException e) {
|
||||
InvalidValue invalidValue = e.getInvalidValue();
|
||||
Component comp = ComponentsFinder.findRowByValue(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue