Waj

Membership Plan Logic

How Coupons Are Generated

When a membership is sold, the system automatically generates coupons:

Example: "Monthly Hair Care" Plan

  • Validity: 3 Months

  • Benefit: Haircut, 4 sessions per month

Generated Coupons:

  • Month 1: 4 haircut coupons (days 1-30)

  • Month 2: 4 haircut coupons (days 31-60)

  • Month 3: 4 haircut coupons (days 61-90)

Total: 12 coupons (one per session)

Calculating Expiry Dates

The system calculates expiry date based on validity:

Start Date | Validity | Expiry Date

Jan 1, 2024 | 1 Month | Feb 1, 2024

Jan 1, 2024 | 3 Months | Apr 1, 2024

Jan 1, 2024 | 6 Months | Jul 1, 2024

Jan 1, 2024 | 9 Months | Oct 1, 2024

Jan 1, 2024 | 1 Year | Jan 1, 2025

Note: If start date is Jan 31, 1-month expiry is Feb 28/29 (last day of February).

Extension Logic

When extending:

  1. New coupons generated for extension period

  2. Old coupons remain valid (if not expired)

  3. Expiry date extends from current expiry

  4. Extension requires payment (optional)

Example:

  • Current expiry: Jan 1, 2024

  • Extend by: 3 months

  • New expiry: Apr 1, 2024

  • New coupons generated for Jan-Apr period