Skip to content

Discount Rules & Stacking ​

TutorManager includes an advanced automated discount engine designed for schools and learning centers. Rather than applying manual price reductions each month, administrators can define reusable rules with strict scopes, conditions, stacking logic, and caps.

Available to:AdminReceptionist

Order of Calculation ​

When generating an invoice line or computing a preview in the Simulator, TutorManager evaluates discounts in a strict, deterministic sequence:

mermaid
flowchart TD
    A["1. Base Line Amount<br>(Quantity × Plan Unit Price)"] --> B["2. Fixed Price Rules<br>(Replaces Unit Price, Recomputes Base)"]
    B --> C["3. Combinable & Exclusive Rules<br>(Applied by Priority: % and Fixed Amount)"]
    C --> D["4. Cap Enforcement<br>(Limits Total Discounts to Cap %)"]
    D --> E["5. Manual Discount Adjustment"]
    E --> F["6. Tax / VAT Calculation"]
  1. Plan base: Quantity multiplied by the active billing plan's unit price.
  2. Fixed price rules: Any rule with type fixed_price overrides the unit price before other discounts are evaluated.
  3. Percentage and fixed amount rules: Evaluated according to priority (lowest number first).
  4. Stacking & caps:
    • Combinable (combinable): Disount amounts sum up.
    • Exclusive best (exclusive_best): Only the single highest discount among exclusive rules is applied.
    • Cap (capPercent): If the sum of rule discounts exceeds the configured percentage (e.g. 30%), the total discount is capped proportionally.
  5. Manual discount: An optional one-off discount applied by staff.
  6. VAT / Tax: Applied to the net amount. The final net amount is clamped to never fall below 0,00 €.

Rule Configuration Parameters ​

ParameterOptionsDescription
ScopeAll, Course, Category, Subject, Family, Student, EnrollmentRestricts where the rule applies. E.g., apply only to Language Courses or a specific student.
TypePercentage (%), Fixed amount (€), Fixed price (€/unit)How the discount reduces the price.
Family Position1, 2, 3, etc.Orders children in a family by course price descending: 1st (most expensive) pays full, 2nd receives the configured discount.
Minimum LessonsInteger (e.g. 8)Activates only if the student attended at least this many lessons in the month.
StackingCombinable, Exclusive (Best only)Determines whether this rule can stack with other discounts.
PriorityNumber (default 100)Lower numbers are evaluated first in the calculation chain.
Cap (%)Percentage (e.g. 30%)Maximum total discount allowed across all applied rules on that line.
ValidityValid from / Valid toExact date window during which the promotion is active.

Live Sentence Preview ​

When creating or editing a discount rule, TutorManager automatically translates the form settings into a clear, natural-language sentence preview:

Rule preview: "The second child in a family gets 10% discount on courses in category Languages, up to 30% total cap, valid from 1 Nov 2026."

This eliminates configuration errors by confirming exactly how the rule will behave during monthly billing.


Worked Examples ​

1. Sibling Discount: Most Expensive Pays Full Price ​

  • Policy: In families with multiple enrolled children, the child attending the highest-priced course pays the standard rate. The second child receives a 10% discount, and the third child receives 20%.
  • Configuration:
    • Rule 1: Name = "Second child discount", Position = 2, Type = Percentage, Value = 10%, Stacking = Exclusive best.
    • Rule 2: Name = "Third child discount", Position = 3, Type = Percentage, Value = 20%, Stacking = Exclusive best.
  • Billing outcome:
    • Child A is in a 60 €/month course.
    • Child B is in a 40 €/month course.
    • Child A is automatically ranked as Position 1 (most expensive) and pays 60 €.
    • Child B is ranked as Position 2 and receives 10% off (pays 36 €).
    • The calculation note on Child B's invoice clearly states: 1 month × 40,00 € – 10% (2nd child) = 36,00 €.

2. Autumn Promotion with Validity Window and 30% Cap ​

  • Policy: An autumn campaign offers 15% off all language courses from October 1 to December 31, 2026. However, even if a family qualifies for both sibling and promotional discounts, the total discount must never exceed 30%.
  • Configuration:
    • Rule: Name = "Autumn Promo 2026", Scope = Course category: Languages, Type = Percentage, Value = 15%, Stacking = Combinable, Cap = 30%, Valid from = 2026-10-01, Valid to = 2026-12-31.
  • Billing outcome:
    • A student qualifying for a 20% sibling discount and the 15% autumn promo would theoretically get 35%.
    • TutorManager clamps the total discount to the 30% cap and scales the applied amounts proportionally.
    • The line calculation note and simulator breakdown clearly explain the cap enforcement.