Package ch.tocco.nice2.optional.reservation.impl.entitylistener
package ch.tocco.nice2.optional.reservation.impl.entitylistener
-
ClassDescriptionListener to update conflict status, when the "accepted" field on a conflict changes.resolves to parent event if exists and update the field
lessons_actual_total
by adding up theduration_hour_actual
of the parent event and theduration_hour_actual
of all child events.calculates and setsduration_hour_actual
on theEvent
by adding up allduration_hour_actual
of the relatedReservation
sCount the difference between -duration_hour_actual
andduration_hour_target
and writes it toduration_hour_difference
-lessons_actual_total
andlessons_desired_total
and writes it tolessons_difference_total
generate reservation_registration and lecturer_booking_reservation entitiesCreates and deletes Reservation_lecturer_booking entities.update the fieldlessons_actual_total
by adding up theduration_hour_actual
of the current (parent) event and theduration_hour_actual
of all child events.Creates and deletes Reservation_registration entities.count duration_hour_actual fields and write it to related eventset the fields first_course_date and last_course_date on event automatically if there are changes in reservationupdate duration_hour_actual if it is changed on reservation/registrationUpdates the lessons on Reservation_registration when the field lesson on the entity Registration is changed