When creating the default calendar make weekend days not overassignable

The already created calendar data are modified too using a liquibase
changeset.

FEA: ItEr68OTS05IntroducionLimiteSobreasignacionCalendarios
This commit is contained in:
Óscar González Fernández 2011-01-19 11:19:17 +01:00
parent d33ec14c17
commit 77307a0351
2 changed files with 9 additions and 2 deletions

View file

@ -114,8 +114,8 @@ public class ConfigurationBootstrap implements IConfigurationBootstrap {
Capacity eightHours = Capacity.create(EffortDuration.hours(8))
.overAssignableWithoutLimit(true);
Capacity zeroCapacity = Capacity.zero()
.overAssignableWithoutLimit(true);
Capacity zeroCapacity = Capacity.zero().overAssignableWithoutLimit(
false);
calendar.setCapacityAt(Days.MONDAY, eightHours);
calendar.setCapacityAt(Days.TUESDAY, eightHours);
calendar.setCapacityAt(Days.WEDNESDAY, eightHours);

View file

@ -56,4 +56,11 @@
newColumnName="standard_effort" columnDataType="INTEGER"/>
</changeSet>
<changeSet id="by_default_weekends_are_not_overassignable" author="ogonzalez">
<comment>By default weekends are not over assignable</comment>
<sql>
update capacity_per_day SET allowed_extra_effort = 0
where day_id IN (5, 6) AND allowed_extra_effort IS NULL
</sql>
</changeSet>
</databaseChangeLog>