Hi Dojo,
We learned that we can add a custom event on Booking Manager to display a pop-up notification alerting the users that a booking is about to start.
However, this is happening for all the bookings in the system. We would like this to occur only for the main booking and dismiss the contributing bookings that are part of the main booking.
How can we set a notification (custom event) to a specific booking type (or service definition)?
Hi Bruno,
You can achieve this by checking if the booking is contributing:
e.g.:
var reservation = SrmManagers.ResourceManager.GetReservationInstance(Guid.NewGuid()) as ServiceReservationInstance;
if (reservation.IsContributingReservation())
{
return;
}
Kind Regards
Adding that event only when creating the main booking is also a possibility
Hi André, so this means that there is no way to avoid execution of a script that does the checking?