CREATE PROCEDURE dbo.OnlineGetAvailability21
(
	@ArrivalDate datetime 
	,@DepartureDate datetime
	,@HotelNumbers varchar(MAX)
	,@NoAdults int
	,@NoChildren1 int
	,@NoChildren2 int
	,@NoOfRooms int
	,@IncludePrices bit = 1
	,@CountryNumber int = 1
	,@CustomerRateNumber int = 0
	,@CustomerNumber int = 0
	,@CampaignCodeText varchar(50) = ''
	,@RoomTypeNumber int = NULL
	,@ProductNumber int = null
	,@ProductGroupID int = NULL
	,@ProductGroupIDs varchar(MAX) = NULL
)
AS
BEGIN
	-- Change history:
	-- 2022-01-13 MLJ Added parameter @ProductGroupIDs
	-- 2022-01-10 MLJ Added @ProductGroupID parameter
	DECLARE @NoOfDays int = DATEDIFF(DAY, @ArrivalDate, @DepartureDate)
	EXEC dbo.OnlineGetAvailabilityBase21
		@ArrivalDate 
		,@ArrivalDate 
		,@HotelNumbers 
		,@NoAdults 
		,@NoChildren1 
		,@NoChildren2
		,@NoOfDays 
		,@NoOfRooms
		,@IncludePrices 
		,0 -- @CalendarMode 
		,@CountryNumber
		,@CustomerRateNumber 
		,@CustomerNumber 
		,@CampaignCodeText
		,@RoomTypeNumber
		,@ProductNumber
		,@ProductGroupID
		,@ProductGroupIDs
END
