Making Vouchers Expire in Days Rather than Months or Years

Without configuration, the Unit of Measure (UOM) for a voucher's expiration length is months or years.

You can configure the product so the UOM also includes days. This configuration enables users to set expiration based on days, for example, to create a voucher that expires in 5 days.

To add days to the UOM for a voucher’s expiration date

  1. Add a new LOV type called Days.

  2. Update the configuration of the Expiration field in the LOY Voucher business component to calculate the expiration date based on the new LOV, using the following formula:

    IIF([Expiration UOM] = LookupValue("LOY_LEAD_TIME_CD", "Days"), [Created] + 1, [Created] + [Expiration In Days])