[Bug #849] fix the behaviour of the dates in the cost category view

Disable any previous day to the selected init date in order to not
be chosen as end date.

FEA : ItEr70S04BugFixing
This commit is contained in:
Susana Montes Pedreira 2011-02-15 11:15:11 +01:00
parent 5c9fa9021a
commit 71320743c8

View file

@ -348,7 +348,7 @@ public class CostCategoryCRUDController extends GenericForwardComposer
public void onEvent(Event event) throws Exception {
// Updates the constraint of the endDate box with the new date
LocalDate initDate = ((HourCost)row.getValue()).getInitDate();
Datebox endDateBox = (Datebox) row.getChildren().get(3);
Datebox endDateBox = (Datebox) row.getChildren().get(4);
endDateBox.setConstraint("after " +
String.format("%04d", initDate.getYear()) +
String.format("%02d", initDate.getMonthOfYear()) +