allows the limiting resource assignment when there are
subcontractor progresses. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
1f34a41d0d
commit
adfa296873
1 changed files with 5 additions and 5 deletions
|
|
@ -339,11 +339,8 @@ public class TaskPropertiesController extends GenericForwardComposer {
|
|||
restoreOldState();
|
||||
editTaskController.showNonPermitChangeResourceAllocationType();
|
||||
} else {
|
||||
if(newState.equals(ResourceAllocationTypeEnum.SUBCONTRACT) && checkCompatibleAllocation()){
|
||||
changeResourceAllocationType(oldState, newState);
|
||||
editTaskController.selectAssignmentTab(lbResourceAllocationType
|
||||
.getSelectedIndex() + 1);
|
||||
}else{
|
||||
if(newState.equals(ResourceAllocationTypeEnum.SUBCONTRACT)
|
||||
&& !checkCompatibleAllocation()){
|
||||
try {
|
||||
restoreOldState();
|
||||
Messagebox.show(_("This resource allocation type is incompatible. The task has an associated order element which has a progress that is of type subcontractor. "),
|
||||
|
|
@ -352,6 +349,9 @@ public class TaskPropertiesController extends GenericForwardComposer {
|
|||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}else{
|
||||
changeResourceAllocationType(oldState,newState);
|
||||
editTaskController.selectAssignmentTab(lbResourceAllocationType.getSelectedIndex() + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue