Integer effectiveWorkableDays = getTask()
.getWorkableDaysFrom(
allocationStart.getDate(),
allocationEnd.asExclusiveEnd());
if (effectiveWorkableDays < specifiedWorkableDays) {
Clients.response(new AuWrongValue(
taskWorkableDays,
_("The original workable days value {0} cannot be modified as it has consolidations",
specifiedWorkableDays)));
taskWorkableDays
.setValue(effectiveWorkableDays);