Revert "Add restriction to prevent remove all the lines in a personal expense sheet"
This reverts commit 290c7dfb5b.
This is not needed as there's already an annotation @NotEmpty in
expenseSheetLines. So it's mandatory for all the ExpenseSheet having at least
one ExpenseSheetLine.
FEA: ItEr76S28UserDashboard
This commit is contained in:
parent
56c2c78344
commit
85c06275d4
1 changed files with 0 additions and 9 deletions
|
|
@ -232,13 +232,4 @@ public class ExpenseSheet extends IntegrationEntity implements IHumanIdentifiabl
|
|||
return !personal;
|
||||
}
|
||||
|
||||
@AssertTrue(message = "a personal expenses must have at least one line")
|
||||
public boolean checkConstraintPersonalExpenseMustHaveAtLeastOneLine() {
|
||||
if (!personal) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !expenseSheetLines.isEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue