ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Removed check already done in existsParentsWithSameAdvanceType.
This commit is contained in:
parent
2cef4848d5
commit
2a9ec2240f
1 changed files with 0 additions and 9 deletions
|
|
@ -177,15 +177,6 @@ public abstract class OrderElement {
|
|||
throws Exception {
|
||||
if (!this.advanceAssigments.isEmpty()) {
|
||||
for (AdvanceAssigment advanceAssigment : getAdvanceAssigments()) {
|
||||
if (advanceAssigment.getAdvanceType().getId() == newAdvanceAssigment
|
||||
.getAdvanceType().getId()) {
|
||||
System.out.println("bien");
|
||||
throw new DuplicateAdvanceAssigmentForOrderElementException(
|
||||
"Duplicate Advance Assigment For Order Element",
|
||||
this,
|
||||
"org.navalplanner.business.orders.entities.OrderElement");
|
||||
}
|
||||
|
||||
if (advanceAssigment.getReportGlobalAdvance()
|
||||
&& newAdvanceAssigment.getReportGlobalAdvance())
|
||||
throw new DuplicateValueTrueReportGlobalAdvanceException(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue