Condition | Description |
R_DAYS(range) | Specifies the number of rental days included on a single item/modifier. |
R_DAYS_EX(range) | Uses the total number of days in a series of exchanges in order to evaluate the condition (sums the number of days across multiple modifiers when the modifiers were added due to equipment exchanges). Example: If a ski is checked out on a Monday morning, exchanged Monday afternoon for a snowboard and the snowboard is returned on Wednesday evening, this function allows for three days. In contrast, the R_DAYS function would only allow for one day on the ski rental modifier and two days on the snowboard rental modifier. R_DAYS_EX() would typically be used when offering a standard discount percentage across all types of rental packages for multi-day rentals. |
R_DAYTYPE | Condition that specifies the type of day, typically HALF or FULL |
AGE() | Condition used to specify discounts based on the age of the guest attached to the item. Specifically created for rental use, but can be used in any situation where a guest is attached to an item. |
Rule nickname | Rule configuration | Rule description | Rule explanation |
RENTALFREE | 01/12/2013,02/15/2013,02/28/2013 | Rental “free day” dates | List of dates when renters are not charged. |
R-DEMOTBT (attached to the demo boot item that is sold as a modifier to a rental contract item) | IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYS(1) AND R_DAYTYPE(HALF), SETPRICE(25)) IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYS(1-2) AND R_DAYTYPE(FULL), SETPRICE(30)) IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYS(3-4) AND R_DAYTYPE(FULL), SETPRICE(27)) IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYS(5-7) AND R_DAYTYPE(FULL), SETPRICE(24)) IF(AGE(3-12) OR AGE(65-99), DISCOUNT(25)) | Rentals – demo boot | If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the number of days is 1 and the type of day is HALF, set each day’s price to $25. If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the number of days on the modifier is between 1 and 2 and the type of day is FULL, set each day’s price to $30. If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the number of days on the modifier is between 3 and 4 and the type of day is FULL, set each day’s price to $27. If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the number of days on the modifier is between 5 and 7 and the type of day is FULL, set each day’s price to $24. Finally, if the age of the guest attached to the item is between 3 and 12 or between 65 and 99, discount the prices by 25%. |
Rule nickname | Rule configuration | Rule description | Rule explanation |
RENTALFREE | 01/12/2013,02/15/2013,02/28/2013 | Rental “free day” dates | List of dates when renters are not charged. |
R-DEMOTBT (attached to the demo boot item that is sold as a modifier to a rental contract item) | IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYTYPE(HALF), SETPRICE(25)) IF(NOT DATE(SUB(RENTALFREE)) AND R_DAYTYPE(FULL), SETPRICE(30)) IF(R_DAYS_EX(2-4),DISCOUNT(10)) IF(R_DAYS_EX(>=5),DISCOUNT(15)) IF(AGE(3-12) OR AGE(65-99), DISCOUNT(25)) | Rentals – demo boot | If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the type of day is HALF, set each day’s price to $25. If it is not a date included in the RENTALFREE rule (a rule set up with just a list of dates) and the type of day is FULL, set each day’s price to $30. It the number of days included across all modifiers that are linked by exchanges is between 2 and 4, discount those days by 10%. It the number of days included across all modifiers that are linked by exchanges is greater than or equal to 5, discount those days by 15%. Finally, if the age of the guest attached to the item is between 3 and 12 or between 65 and 99, discount the prices by 25%. |