*** Video quality may vary based on your internet connection. For the best experience, select 1080p in the video settings to play in HD if available.
*** Video quality may vary based on your internet connection. For the best experience, select 1080p in the video settings to play in HD if available.
Rule Parameters:
"Stay Length" (N): The number of nights a customer must book to trigger the discount (e.g., 3, 4, 7).
"Pay Length" (M): The number of nights the customer will be charged for within each discount cycle (e.g., 2, 3, 5).
Applicable Rooms: The specific room types or categories to which the rule applies.
Applicable Period: The specific date range or time period during which the rule is valid.
Maximum Discount Cycles: An optional parameter to limit the number of times the discount can be applied in a single booking.
Calculation Logic:
The system will determine how many complete "Stay Length" cycles are within the total number of nights booked.
For each complete cycle, the customer will be charged for the "Pay Length" nights.
Any remaining nights outside of complete cycles will be charged at the full rate.
Example: Stay 3 pay 2. If a customer books 6 nights, then there are 2 stay cycles. The customer will pay for 4 nights. If a customer books 7 nights, then there are 2 stay cycles, and one night will be charged at full price.
System Integration and Implementation
Rule Creation Interface:
Develop an administrative interface that allows authorized users to create, modify, and delete "Stay/Pay" rules.
This interface should provide fields for defining all rule parameters.
Include validation checks to ensure that rule parameters are valid (e.g., "Pay Length" is less than "Stay Length")