[Bug #726] Fix bug
the validation in order to check if at least an advance is spread does not work fine when the results are paged. FEA : ItEr62S05BugFixing
This commit is contained in:
parent
564439d762
commit
a2a747ea66
1 changed files with 3 additions and 9 deletions
|
|
@ -966,16 +966,10 @@ public class ManageOrderElementAdvancesController extends
|
|||
|
||||
private boolean validateReportGlobalAdvance(){
|
||||
boolean existItems = false;
|
||||
for(int i=0; i< editAdvances.getChildren().size(); i++){
|
||||
if(editAdvances.getChildren().get(i) instanceof Listitem){
|
||||
Listitem listItem = (Listitem) editAdvances.getChildren().get(i);
|
||||
AdvanceAssignment advanceAssignment = (AdvanceAssignment) listItem
|
||||
.getValue();
|
||||
existItems = true;
|
||||
if ((advanceAssignment != null)
|
||||
&& (advanceAssignment.getReportGlobalAdvance())) {
|
||||
for (AdvanceAssignment advance : this.getAdvanceAssignments()) {
|
||||
existItems = true;
|
||||
if (advance.getReportGlobalAdvance()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (!existItems);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue